Difference between revisions of "Template:Infobox game/row/taxonomy/series"

From PCGamingWiki, the wiki about fixing PC games
m (publishing the new version that handles sidebarSeries publication)
(updated category naming; added section validity check)
Line 3: Line 3:
 
<td class="template-infobox-info">{{#vardefineecho:series| {{#arraymap: {{{1}}} | , | €€€€€ | {{#ifexist: Series:€€€€€
 
<td class="template-infobox-info">{{#vardefineecho:series| {{#arraymap: {{{1}}} | , | €€€€€ | {{#ifexist: Series:€€€€€
 
| [[Series:€€€€€|€€€€€]]{{#vardefine:sidebarSeries|{{#if:{{#var:sidebarSeries}}|{{#var:sidebarSeries}},€€€€€|€€€€€}}}}
 
| [[Series:€€€€€|€€€€€]]{{#vardefine:sidebarSeries|{{#if:{{#var:sidebarSeries}}|{{#var:sidebarSeries}},€€€€€|€€€€€}}}}
| <span class="plainlinks">[{{fullurl:Series:€€€€€|action=edit&preload=PCGamingWiki:Sample_article/Series}} <span style="color: #ba0000">€€€€€</span>]</span> [[Category:Invalid template usage (Series)]]
+
| <span class="plainlinks">[{{fullurl:Series:€€€€€|action=edit&preload=PCGamingWiki:Sample_article/Series}} <span style="color: #ba0000">€€€€€</span>]</span> [[Category:Invalid template usage (Taxonomy)]]
 
}}[[Part of series::Series:€€€€€| ]]}}
 
}}[[Part of series::Series:€€€€€| ]]}}
 
}}</td>
 
}}</td>
</tr>}}
+
</tr>}}{{#switch:{{#var:section}}
</includeonly><noinclude>{{Documentation}}</noinclude>
+
|Infobox game
 +
|monetization
 +
|microtransactions
 +
|modes
 +
|pacing
 +
|perspectives
 +
|controls
 +
|genres
 +
|sports
 +
|vehicles
 +
|art styles
 +
|themes={{#vardefine:section|series}}
 +
|#Default = [[Category:Invalid row order (Taxonomy)]]
 +
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 07:49, 4 September 2021

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

Type in the name of the game series if one exists. This then populates a floating seriesbox below the infobox, see e.g. Halo: Combat Evolved or Tomb Raider (1996) for examples.

This template replaces the previous {{Series}} template that used to reside below the {{Infobox game}}.