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

From PCGamingWiki, the wiki about fixing PC games
(1:1 with live)
(test simpler design)
Line 1: Line 1:
 
<includeonly>{{#if: {{{1|}}} | <tr>
 
<includeonly>{{#if: {{{1|}}} | <tr>
<td class="template-infobox-type">Modes</td>{{#vardefine:currentMode|}}
+
<td class="template-infobox-type">Modes</td>
 
<td class="template-infobox-info">{{#arraymap: {{{1}}} | , | €€€€€ | {{#switch: {{lc:€€€€€}}
 
<td class="template-infobox-info">{{#arraymap: {{{1}}} | , | €€€€€ | {{#switch: {{lc:€€€€€}}
| singleplayer = {{#vardefine:currentMode|Singleplayer}}
+
| singleplayer = {{Glossary:Singleplayer}}[[Category:Singleplayer]]
| multiplayer  = {{#vardefine:currentMode|Multiplayer}}{{#vardefine:multiplayer|needed}}
+
| multiplayer  = {{Glossary:Multiplayer}}[[Category: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|}}, }}
+
}}
 
}}</td>
 
}}</td>
 
</tr>}}
 
</tr>}}
 
</includeonly><noinclude>{{Documentation}}</noinclude>
 
</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 02:44, 4 September 2021

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