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

From PCGamingWiki, the wiki about fixing PC games
(test restore+overhaul modes vardefine (NOTE: breaking change))
(OK fine)
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 = [[:Category:Singleplayer|Singleplayer]]    [[Category:Singleplayer]]{{#vardefine:modes|{{#var:modes}}, singleplayer}}
+
| singleplayer = [[:Category:Singleplayer|Singleplayer]]    [[Category:Singleplayer]]{{#vardefine:modes|{{#var:modes}}, [[Category:Singleplayer|singleplayer]]}}
| multiplayer  = [[:Category:Multiplayer|Multiplayer]]      [[Category:Multiplayer]]{{#vardefine:modes|{{#var:modes}}, multiplayer}}
+
| multiplayer  = [[:Category:Multiplayer|Multiplayer]]      [[Category:Multiplayer]]{{#vardefine:modes|{{#var:modes}}, [[Category:Multiplayer|multiplayer]]}}
 
| #default      = <div title="Error: mode '€€€€€' not recognized" class="svg-icon svg-16 os-error"></div> [[Category:Invalid template usage (infobox game)]]
 
| #default      = <div title="Error: mode '€€€€€' not recognized" class="svg-icon svg-16 os-error"></div> [[Category:Invalid template usage (infobox game)]]
 
}}
 
}}

Revision as of 09:24, 26 May 2020

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