Difference between revisions of "Template:Video game category header"
Dinoguy1000 (talk | contribs) (I *really* hate that bug) |
Dinoguy1000 (talk | contribs) (add support for a few different subcategory types) |
||
Line 1: | Line 1: | ||
− | + | {{ #vardefine: $type | {{ #explode: {{PAGENAME}} || -1 }} | |
+ | }}{{ #switch: {{ #var: $type }} | ||
+ | | characters | cards | files | images | sets = {{ #vardefine: $game | {{ #explode: {{PAGENAME}} | {{ #var: $type }} }} }} | ||
+ | | #default = {{ #vardefine: $game | {{PAGENAME}} }}{{ #vardefine: $type }} | ||
+ | }}{{ #vardefine: $game_short | {{ #switch: {{ #explode: {{PAGENAME}} || 1 }} | ||
+ | | GX = {{ #replace: {{ #var: $game }} | Yu-Gi-Oh! GX }} | ||
+ | | 5D's = {{ #replace: {{ #var: $game }} | Yu-Gi-Oh! 5D's }} | ||
+ | | ZEXAL = {{ #replace: {{ #var: $game }} | Yu-Gi-Oh! ZEXAL }} | ||
+ | | The = {{ #replace: {{ #var: $game }} | Yu-Gi-Oh! The }} | ||
+ | | #default = {{ #replace: {{ #var: $game }} | Yu-Gi-Oh! }} | ||
+ | }} | ||
+ | }}{{ #vardefine: $game_pretty | {{ #explode: {{ #var: $game }} | ( }} | ||
+ | }}This category contains pages related to {{ #if: {{ #var: $type }} | {{ #var: $type }} in }} the video game ''[[{{PAGENAME}}|{{ #var: $game_pretty }}]]''. | ||
− | <includeonly> | + | <includeonly>{{ #if: {{ #var: $type }} | [[Category:{{ #var: $game }}]] }}[[Category:Video games|{{ #var: $game_short }}]]</includeonly><noinclude>[[Category:Templates]]</noinclude> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}]]</includeonly><noinclude>[[Category:Templates]]</noinclude> |
Revision as of 13:18, 23 October 2019
This category contains pages related to the video game Video game category header.