Difference between revisions of "Template:Video game category header"

From Yugipedia
Jump to: navigation, search
(support set images categories)
(subcategorise some items by series)
Line 25: Line 25:
 
   | #default = {{ #replace: {{ #var: $vg-link }} | Yu-Gi-Oh! }}
 
   | #default = {{ #replace: {{ #var: $vg-link }} | Yu-Gi-Oh! }}
 
   }}
 
   }}
}}This category contains {{ #switch: {{ #var: $type }}
+
}}<!--
 +
 
 +
-->{{ #vardefine: $series | {{ #show: {{ #var: $vg }} |?Video game series# }} }}<!--
 +
 
 +
-->This category contains {{ #switch: {{ #var: $type }}
 
   | Field Spell artworks = [[Field Spell Card]] artworks from
 
   | Field Spell artworks = [[Field Spell Card]] artworks from
 
   | card images          = card images from
 
   | card images          = card images from
Line 45: Line 49:
 
<includeonly>{{ #if: {{ #var: $type }}
 
<includeonly>{{ #if: {{ #var: $type }}
 
   | [[Category:{{ #var: $vg-link }} {{ #if: {{ #pos: {{ #var: $type }} | images }}{{ #pos: {{ #var: $type }} | Field Spell artworks }} | files }}|{{ ucfirst: {{ #var: $type }} }}]]{{ #switch: {{ #var: $type }}
 
   | [[Category:{{ #var: $vg-link }} {{ #if: {{ #pos: {{ #var: $type }} | images }}{{ #pos: {{ #var: $type }} | Field Spell artworks }} | files }}|{{ ucfirst: {{ #var: $type }} }}]]{{ #switch: {{ #var: $type }}
     | cards        = [[Category:Cards by video game|{{ #var: $vg-short }}]]
+
     | cards        = [[Category:{{ #if: {{ #var: $series }} | {{ #var: $series }} cards | Cards by video game }}|{{ #var: $vg-short }}]]
     | card images  = [[Category:Video game card images|{{ #var: $vg-short }}]]
+
     | card images  = [[Category:{{ #var: $series | Video game }} card images|{{ #var: $vg-short }}]]
     | characters  = [[Category:Video game characters|{{ #var: $vg-short }}]]
+
     | characters  = [[Category:{{ #var: $series | Video game }} characters|{{ #var: $vg-short }}]]
 
     | Duel Puzzles = [[Category:Duel Puzzles|{{ #var: $vg-short }}]]
 
     | Duel Puzzles = [[Category:Duel Puzzles|{{ #var: $vg-short }}]]
 
     | files        = [[Category:Files by video game|{{ #var: $vg-short }}]]
 
     | files        = [[Category:Files by video game|{{ #var: $vg-short }}]]

Revision as of 20:25, 19 November 2019

This category contains pages related to the video game [[|]].