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

From PCGamingWiki, the wiki about fixing PC games
m (vardefine)
m (t)
Line 1: Line 1:
 
<includeonly>{{#if: {{{1|}}} | <tr>
 
<includeonly>{{#if: {{{1|}}} | <tr>
<td class="template-infobox-type">Modes</td>
+
<td class="template-infobox-type">Modes</td>{{#vardefine:currentMode|}}
 
<td class="template-infobox-info">{{#arraymap: {{{1}}} | , | €€€€€ | {{#switch: {{lc:€€€€€}}
 
<td class="template-infobox-info">{{#arraymap: {{{1}}} | , | €€€€€ | {{#switch: {{lc:€€€€€}}
| singleplayer = {{Glossary:Singleplayer|uc}}                                                      [[Category:Singleplayer]] {{#vardefine:modes|{{#var:modes|}}Glossary:Singleplayer, }}
+
| singleplayer = {{#vardefine:currentMode|Singleplayer}}
| multiplayer  = {{Glossary:Multiplayer|uc}}                                                        [[Category:Multiplayer]] {{#vardefine:modes|{{#var:modes|}}Glossary:Multiplayer, }}
+
| multiplayer  = {{#vardefine:currentMode|Multiplayer}}
 
| #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 10:06, 23 July 2020

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