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

From PCGamingWiki, the wiki about fixing PC games
(1:1 with live)
 
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">{{#vardefineecho:modes|{{#arraymap: {{{1}}} | , | x | [[:Category:{{ucfirst:x}}|{{ucfirst:x}}]] [[Category:{{ucfirst:x}}]] }} }}</td>
+
<td class="template-infobox-info">{{#arraymap: {{{1}}} | , | €€€€€ | {{#switch: {{lc:€€€€€}}
 +
| singleplayer = [[:Category:Singleplayer|Singleplayer]]    [[Category:Singleplayer]]
 +
| multiplayer  = [[:Category:Multiplayer|Multiplayer]]     [[Category:Multiplayer]]
 +
| #default      = <div title="Error: mode '€€€€€' not recognized" class="svg-icon svg-16 os-error"></div> [[Category:Invalid template usage (infobox game)]]
 +
}}
 +
}}</td>
 
</tr>}}
 
</tr>}}
 
</includeonly><noinclude>{{Documentation}}</noinclude>
 
</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 08:09, 26 May 2020

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