Difference between revisions of "Template:Video game category header"
Dinoguy1000 (talk | contribs) (add support for Duel Puzzle categories; display character navbox on character categories) |
Dinoguy1000 (talk | contribs) (support Field Spell artworks categories (wasn't going to, but apparently both Duel Arena and Duel Generation feature them, and I don't know what else might too)) |
||
Line 1: | Line 1: | ||
{{ #vardefine: $type | {{ #explode: {{PAGENAME}} || -1 }} | {{ #vardefine: $type | {{ #explode: {{PAGENAME}} || -1 }} | ||
}}{{ #switch: {{ #var: $type }} | }}{{ #switch: {{ #var: $type }} | ||
+ | | artworks = {{ #vardefine: $type | Field Spell artworks }}{{ #vardefine: $game | {{ #explode: {{PAGENAME}} | {{ #var: $type }} }} }} | ||
| cards | characters | files | sets = {{ #vardefine: $game | {{ #explode: {{PAGENAME}} | {{ #var: $type }} }} }} | | cards | characters | files | sets = {{ #vardefine: $game | {{ #explode: {{PAGENAME}} | {{ #var: $type }} }} }} | ||
| images = {{ #switch: {{ #explode: {{PAGENAME}} || -2 }} | | images = {{ #switch: {{ #explode: {{PAGENAME}} || -2 }} | ||
Line 21: | Line 22: | ||
}} | }} | ||
}}This category contains {{ #switch: {{ #var: $type }} | }}This category contains {{ #switch: {{ #var: $type }} | ||
− | | | + | | Field Spell artworks = [[Field Spell Card]] artworks from |
− | | card images | + | | card images = card images from |
− | | character images = character images from | + | | character images = character images from |
− | | Duel Puzzles | + | | Duel Puzzles = [[Duel Puzzle]]s from |
− | | monster images | + | | files = uploaded files for |
− | | #default | + | | monster images = non-card images from |
+ | | #default = pages related to {{ #if: {{ #var: $type }} | {{ #var: $type }} in }} | ||
}} the video game ''[[{{ #var: $vg-link }}|{{ #var: $vg }}]]''. | }} the video game ''[[{{ #var: $vg-link }}|{{ #var: $vg }}]]''. | ||
{{ #ifexpr: {{ formatnum: {{PAGESINCATEGORY:{{PAGENAME}}}} | R }} > 400 | {{Contents}} | {{ #ifexpr: {{ formatnum: {{PAGESINCATEGORY:{{PAGENAME}}}} | R }} > 400 | {{Contents}} |
Revision as of 14:53, 24 October 2019
This category contains pages related to the video game [[|]].