Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

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))
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]]
+
| singleplayer = [[:Category:Singleplayer|Singleplayer]]    [[Category:Singleplayer]]{{#vardefine:modes|{{#var:modes}}, singleplayer}}
| multiplayer  = [[:Category:Multiplayer|Multiplayer]]      [[Category:Multiplayer]]
+
| multiplayer  = [[:Category:Multiplayer|Multiplayer]]      [[Category:Multiplayer]]{{#vardefine:modes|{{#var:modes}}, 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 08:57, 26 May 2020

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