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

From PCGamingWiki, the wiki about fixing PC games
m (Glossary:)
m (vardefine)
Line 2: Line 2:
 
<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}}} | , | €€€€€ | {{#switch: {{lc:€€€€€}}
| singleplayer = {{Glossary:Singleplayer|uc}}                                                      [[Category:Singleplayer]] {{#var:modes|{{#var:modes|}}Glossary:Singleplayer, }}
+
| singleplayer = {{Glossary:Singleplayer|uc}}                                                      [[Category:Singleplayer]] {{#vardefine:modes|{{#var:modes|}}Glossary:Singleplayer, }}
| multiplayer  = {{Glossary:Multiplayer|uc}}                                                        [[Category:Multiplayer]] {{#var:modes|{{#var:modes|}}Glossary:Multiplayer, }}
+
| multiplayer  = {{Glossary:Multiplayer|uc}}                                                        [[Category:Multiplayer]] {{#vardefine:modes|{{#var:modes|}}Glossary: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)]]
 
}}
 
}}

Revision as of 10:08, 11 July 2020

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