Difference between revisions of "Development:Infobox game/row/taxonomy/modes"

From PCGamingWiki, the wiki about fixing PC games
m (t)
(1:1 with live)
Line 3: Line 3:
 
<td class="template-infobox-info">{{#arraymap: {{{1}}} | , | €€€€€ | {{#switch: {{lc:€€€€€}}
 
<td class="template-infobox-info">{{#arraymap: {{{1}}} | , | €€€€€ | {{#switch: {{lc:€€€€€}}
 
| singleplayer = {{#vardefine:currentMode|Singleplayer}}
 
| singleplayer = {{#vardefine:currentMode|Singleplayer}}
| multiplayer  = {{#vardefine:currentMode|Multiplayer}}
+
| multiplayer  = {{#vardefine:currentMode|Multiplayer}}{{#vardefine:multiplayer|needed}}
 
| #default    = <div title="Error: '€€€€€' not recognized" class="svg-icon svg-16 os-error"></div> [[Category:Invalid template usage (infobox game)]]
 
| #default    = <div title="Error: '€€€€€' not recognized" class="svg-icon svg-16 os-error"></div> [[Category:Invalid template usage (infobox game)]]
 
}}{{Glossary:{{#var:currentMode}}|uc}} [[Category:{{#var:currentMode}}]] {{#vardefine:modes|{{#var:modes|}}{{#var:currentMode|}}, }}
 
}}{{Glossary:{{#var:currentMode}}|uc}} [[Category:{{#var:currentMode}}]] {{#vardefine:modes|{{#var:modes|}}{{#var:currentMode|}}, }}

Revision as of 02:40, 4 September 2021

Documentation for the above template (sometimes hidden from view).