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

From PCGamingWiki, the wiki about fixing PC games
m (t)
(added section validity order check)
 
(10 intermediate revisions by 2 users not shown)
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">{{#switch: {{lc:{{{1}}}}}
| singleplayer = {{Glossary:Singleplayer|uc}}                                                       [[Category:Singleplayer]] {{#var:modes|{{#var:modes|}}Singleplayer, }}
+
| singleplayer = {{Glossary:Singleplayer|uc}}[[Category:Singleplayer]]{{#vardefine:modes|Singleplayer}}
| multiplayer  = {{Glossary:Multiplayer|uc}}                                                       [[Category:Multiplayer]] {{#var:modes|{{#var:modes|}}Multiplayer, }}
+
| singleplayer,multiplayer
| #default    = <div title="Error: '€€€€€' not recognized" class="svg-icon svg-16 os-error"></div> [[Category:Invalid template usage (infobox game)]]
+
| singleplayer, multiplayer
}}
+
| multiplayer,singleplayer
 +
| multiplayer, singleplayer = {{Glossary:Singleplayer|uc}}[[Category:Singleplayer]], {{Glossary:Multiplayer|uc}}[[Category:Multiplayer]]{{#vardefine:multiplayer|needed}}{{#vardefine:modes|Singleplayer, Multiplayer}}
 +
| multiplayer  = {{Glossary:Multiplayer|uc}}[[Category:Multiplayer]]{{#vardefine:multiplayer|needed}}{{#vardefine:modes|Multiplayer}}
 +
| #default    = <div title="Error: '€€€€€' not recognized" class="svg-icon svg-16 os-error"></div> [[Category:Invalid template usage (Taxonomy)]]
 
}}</td>
 
}}</td>
</tr>}}
+
</tr>}}{{#switch:{{#var:section}}
</includeonly><noinclude>{{Documentation}}</noinclude>
+
|Infobox game
 +
|monetization
 +
|microtransactions={{#vardefine:section|modes}}
 +
|#Default = [[Category:Invalid row order (Taxonomy)]]
 +
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 04:17, 4 September 2021

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