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

From PCGamingWiki, the wiki about fixing PC games
(test mode list vardefine)
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>
<td class="template-infobox-info">{{#arraymap: {{{1}}} | , | €€€€€ | {{#switch: {{lc:€€€€€}}
+
<td class="template-infobox-info">{{#arraymap: {{{1}}} | , | €€€€€ | {{#vardefine:modes|{{#if:{{#var:modes}}|{{#var:modes}},€€€€€|€€€€€}}}}{{#switch: {{lc:€€€€€}}
 
| singleplayer = {{Glossary:Singleplayer|uc}}[[Category:Singleplayer]]
 
| singleplayer = {{Glossary:Singleplayer|uc}}[[Category:Singleplayer]]
 
| multiplayer  = {{Glossary:Multiplayer|uc}}[[Category:Multiplayer]]{{#vardefine:multiplayer|needed}}
 
| multiplayer  = {{Glossary:Multiplayer|uc}}[[Category:Multiplayer]]{{#vardefine:multiplayer|needed}}

Revision as of 02:52, 4 September 2021

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