Difference between revisions of "Template:Video game category header"
Dinoguy1000 (talk | contribs) (handle ARC-V games) |
(Changing Attribute icons category) |
||
(22 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ #vardefine: $type | {{ #explode: {{ | + | {{ #vardefine: $pagename | {{Normalized pagename|{{PAGENAME<noinclude>:Yu-Gi-Oh! Duel Links counter images</noinclude>}}}} |
+ | }}{{ #vardefine: $type | {{ #explode: {{ #var: $pagename }} || -1 }} | ||
}}{{ #switch: {{ #var: $type }} | }}{{ #switch: {{ #var: $type }} | ||
− | | artworks = {{ # | + | | artworks = {{ #switch: {{ #explode: {{ #var: $pagename }} || -2 }} |
− | + | | Spell = {{ #vardefine: $type | Field Spell artworks }} | |
− | + | | card = {{ #vardefine: $type | card artworks }} | |
− | | | + | | #default = <!-- one-word type that shouldn't need adjusted --> |
− | | | ||
− | |||
− | |||
− | |||
− | | #default | ||
}} | }} | ||
− | | | + | | Decks = {{ #switch: {{ #explode: {{ #var: $pagename }} || -2 }} |
− | | # | + | | Starter = {{ #vardefine: $type | Starter Decks }} |
− | }}{{ #vardefine: $ | + | | Structure = {{ #vardefine: $type | Structure Decks }} |
− | }}{{ #vardefine: $vg | {{vg|{{ #var: $ | + | }} |
− | }}{{ #vardefine: $vg- | + | | Disks = {{ #vardefine: $type | Duel Disks }} |
+ | | galleries = {{ #vardefine: $type | card galleries }} | ||
+ | | icons = {{ #switch: {{ #explode: {{ #var: $pagename }} || -2 }} | ||
+ | | Attribute = {{ #vardefine: $type | Attribute icons }} | ||
+ | | counter = {{ #vardefine: $type | counter icons }} | ||
+ | | genre = {{ #vardefine: $type | genre icons }} | ||
+ | | Property = {{ #vardefine: $type | Property icons }} | ||
+ | | Type = {{ #vardefine: $type | Type icons }} | ||
+ | }} | ||
+ | | images = {{ #switch: {{ #explode: {{ #var: $pagename }} || -2 }} | ||
+ | | card = {{ #vardefine: $type | card images }} | ||
+ | | character = {{ #vardefine: $type | character images }} | ||
+ | | counter = {{ #vardefine: $type | counter icons }}{{ #vardefine: $pagename_type | counter images }} | ||
+ | | list = {{ #vardefine: $type | card list images }} | ||
+ | | monster = {{ #vardefine: $type | monster images }} | ||
+ | | pack = {{ #vardefine: $type | pack images }} | ||
+ | | set = {{ #vardefine: $type | set images }} | ||
+ | }} | ||
+ | | Lists = {{ #vardefine: $type | Forbidden & Limited Lists }} | ||
+ | | Puzzles = {{ #vardefine: $type | Duel Puzzles }} | ||
+ | | Runners = {{ #vardefine: $type | Duel Runners }} | ||
+ | | cards | chapters | characters | clothing | events | files | genres | icons | items | locations | sets | videos = <!-- these are one-word types that don't need adjusting --> | ||
+ | | #default = {{ #vardefine: $type }}<!-- clear unrecognized types --> | ||
+ | }}{{ #vardefine: $game | {{ #if: {{ #var: $type }} | {{ #explode: {{ #var: $pagename }} | {{ #var: $pagename_type | {{ #var: $type }} }} }} | {{ #var: $pagename }} }} | ||
+ | }}{{ #vardefine: $vg | {{vg|{{ #var: $game }}|full=1}} | ||
+ | }}{{ #vardefine: $vg-abbr | {{ #if: {{ #var: $vg }} | {{vg|{{ #var: $game }}}} }} | ||
+ | }}{{ #vardefine: $vg-link | {{ #if: {{ #var: $vg }} | {{vg|{{ #var: $game }}|full=1|link=1}} | {{ #var: $game }} }} | ||
+ | }}{{ #vardefine: $vg | {{ #var: $vg | {{ #var: $game }} }}<!-- if for some reason the game isn't listed in {{vg}}, we need *something* for the game's name --> | ||
}}{{ #vardefine: $vg-short | {{ #switch: {{ #explode: {{ #var: $vg-link }} || 1 }} | }}{{ #vardefine: $vg-short | {{ #switch: {{ #explode: {{ #var: $vg-link }} || 1 }} | ||
| GX = {{ #replace: {{ #var: $vg-link }} | Yu-Gi-Oh! GX }} | | GX = {{ #replace: {{ #var: $vg-link }} | Yu-Gi-Oh! GX }} | ||
Line 21: | Line 44: | ||
| ZEXAL = {{ #replace: {{ #var: $vg-link }} | Yu-Gi-Oh! ZEXAL }} | | ZEXAL = {{ #replace: {{ #var: $vg-link }} | Yu-Gi-Oh! ZEXAL }} | ||
| ARC-V = {{ #replace: {{ #var: $vg-link }} | Yu-Gi-Oh! ARC-V }} | | ARC-V = {{ #replace: {{ #var: $vg-link }} | Yu-Gi-Oh! ARC-V }} | ||
− | |||
| #default = {{ #replace: {{ #var: $vg-link }} | Yu-Gi-Oh! }} | | #default = {{ #replace: {{ #var: $vg-link }} | Yu-Gi-Oh! }} | ||
}} | }} | ||
− | }}This category contains {{ #switch: {{ #var: $type }} | + | }}{{ #ifeq: {{ #explode: {{ #var: $vg-short }} }} | The |
− | | Field Spell artworks = [[Field Spell Card]] artworks from | + | | {{ #vardefine: $vg-short | {{ #sub: {{ #var: $vg-short }} | 4 }} }} |
− | | card images | + | }}<!-- |
− | | character images | + | |
− | | counter images | + | -->{{ #vardefine: $series | {{ #show: {{ #var: $vg-link }} |?Video game series# }} }}<!-- |
− | | Duel Puzzles | + | |
− | | files | + | -->This category contains {{ #switch: {{ #var: $type }} |
− | | images | + | | artworks | card artworks = card artworks from |
− | | monster images | + | | Attribute icons = images of [[Attribute]] icons from |
− | | #default | + | | Field Spell artworks = [[Field Spell Card]] artworks from |
+ | | card galleries = card galleries from | ||
+ | | card images = card images from | ||
+ | | chapters = chapters from | ||
+ | | character images = character images from | ||
+ | | clothing = clothing items in | ||
+ | | counter icons = images of [[counter]] icons from | ||
+ | | Duel Disks = [[Duel Disk]]s in | ||
+ | | Duel Puzzles = [[Duel Puzzle]]s from | ||
+ | | Duel Runners = [[Duel Runner]]s in | ||
+ | | events = events held in | ||
+ | | files = uploaded files for | ||
+ | | Forbidden & Limited Lists = [[Forbidden]] & [[Limited]] lists from | ||
+ | | genre icons = images of genre icons from | ||
+ | | icons = uploaded icons for | ||
+ | | images = uploaded images for | ||
+ | | monster images = non-card monster images from | ||
+ | | pack images = images of packs from | ||
+ | | Property icons = images of [[Property]] icons from | ||
+ | | set image = set images from | ||
+ | | Starter Decks = [[Starter Deck]]s from | ||
+ | | Structure Decks = [[Structure Deck]]s from | ||
+ | | Type icons = images of [[Type]] icons from | ||
+ | | videos = uploaded videos for | ||
+ | | #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:{{ | + | {{ #ifexpr: {{ formatnum: {{PAGESINCATEGORY:{{ #var: $pagename }}}} | R }} > 400 | {{CategoryTOC}} |
}} | }} | ||
{{ #switch: {{ #var: $type }} | {{ #switch: {{ #var: $type }} | ||
− | | characters = {{ #ifexist: Template:{{ #var: $vg }} characters | {{ {{ #var: $vg }} characters }} | {{ #ifexist: Template:Characters/{{ #var: $vg-abbr }} | {{Characters/{{ #var: $vg-abbr }}}} }} }} | + | | chapters = {{ #ifexist: Template:{{ #var: $vg }} chapters | {{ {{ #var: $vg }} chapters|state=collapsed}} }} |
− | | sets = {{ #ifexist: Template:{{ #var: $vg }} sets | {{ {{ #var: $vg }} sets }} | {{ #ifexist: Template:Boosters/{{ #var: $vg-abbr }} | {{Boosters/{{ #var: $vg-abbr }}}} }} }} | + | | characters = {{ #ifexist: Template:{{ #var: $vg }} characters | {{ {{ #var: $vg }} characters|state=collapsed}} | {{ #ifexist: Template:Characters/{{ #var: $vg-abbr }} | {{Characters/{{ #var: $vg-abbr }}|state=collapsed}} }} }} |
+ | | events = {{ #ifexist: Template:{{ #var: $vg }} events | {{ {{ #var: $vg }} events|state=collapsed}} }} | ||
+ | | sets = {{ #ifexist: Template:{{ #var: $vg }} sets | {{ {{ #var: $vg }} sets|state=collapsed}} | {{ #ifexist: Template:Boosters/{{ #var: $vg-abbr }} | {{Boosters/{{ #var: $vg-abbr }}|state=collapsed}} }} }} | ||
}} | }} | ||
<includeonly>{{ #if: {{ #var: $type }} | <includeonly>{{ #if: {{ #var: $type }} | ||
− | | [[Category:{{ #var: $vg }} {{ #if: {{ #pos: {{ #var: $type }} | images }}{{ #pos: {{ #var: $type }} | | + | | {{ #switch: {{ #var: $type }}<!-- categorize within the "Category:<Video game>" category tree --> |
− | | | + | | card galleries = [[Category:{{ #var: $vg-link }} cards|{{ ucfirst: {{ #var: $type }} }}]] |
− | | card images | + | | clothing |
− | | characters | + | | Duel Disks |
− | | Duel Puzzles = [[Category:Duel Puzzles|{{ #var: $vg-short }}]] | + | | Duel Runners = [[Category:{{ #var: $vg-link }} items|{{ ucfirst: {{ #var: $type }} }}]] |
− | | files | + | | icons = [[Category:{{ #var: $vg-link }} files|{{ ucfirst: {{ #var: $type }} }}]] |
− | | sets | + | | #default = <!-- |
+ | # If any of the following types, put in "Category:<Video game> files" | ||
+ | -->{{ #if: {{ #pos: {{ #var: $type }} | images }}{{ #pos: {{ #var: $type }} | videos }}{{ #pos: {{ #var: $type }} | artworks }} | ||
+ | | [[Category:{{ #var: $vg-link }} files|{{ ucfirst: {{ #var: $type }} }}]] | ||
+ | | <!-- | ||
+ | # If an icon type, put in "Category:<Video game> icons" | ||
+ | -->{{ #if: {{ #pos: {{ #var: $type }} | icons }} | ||
+ | | [[Category:{{ #var: $vg-link }} icons|{{ ucfirst: {{ #var: $type }} }}]] | ||
+ | | <!-- | ||
+ | # if a type of set, put in "Category:<Video game> sets" | ||
+ | -->{{ #if: {{ #pos: {{ #var: $type }} | Decks }} | ||
+ | | [[Category:{{ #var: $vg-link }} sets|{{ ucfirst: {{ #var: $type }} }}]] | ||
+ | | <!-- | ||
+ | # Any other type goes straight into "Category:<Video game>" | ||
+ | -->[[Category:{{ #var: $vg-link }}|{{ ucfirst: {{ #var: $type }} }}]] | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | }}{{ #switch: {{ #var: $type }} | ||
+ | | Attribute icons = [[Category:Attribute icons by video game|{{ #var: $vg-short }}]] | ||
+ | | card galleries = [[Category:Video game card galleries by game|{{ #var: $vg-short }}]] | ||
+ | | card images = [[Category:{{ #var: $series | Video game }} card images|{{ #var: $vg-short }}]] | ||
+ | | cards = [[Category:{{ #if: {{ #var: $series }} | {{ #var: $series }} cards | Cards by video game }}|{{ #var: $vg-short }}]] | ||
+ | | chapters = [[Category:Video game chapters|{{ #var: $vg-short }}]] | ||
+ | | characters = [[Category:{{ #var: $series | Video game }} characters|{{ #var: $vg-short }}]] | ||
+ | | character images = [[Category:Images of video game characters|{{ #var: $vg-short }}]] | ||
+ | | clothing = [[Category:Clothing|{{ #var: $vg-short }}]] | ||
+ | | counter icons = [[Category:Counter icons|{{ #var: $vg-short }}]] | ||
+ | | Duel Disks = [[Category:Video game Duel Disks|{{ #var: $vg-short }}]] | ||
+ | | Duel Puzzles = [[Category:Duel Puzzles|{{ #var: $vg-short }}]] | ||
+ | | Duel Runners = [[Category:Video game Duel Runners|{{ #var: $vg-short }}]] | ||
+ | | events = [[Category:Video game events|{{ #var: $vg-short }}]] | ||
+ | | files = [[Category:Files by video game|{{ #var: $vg-short }}]] | ||
+ | | Forbidden & Limited Lists = [[Category:Video game Forbidden & Limited Lists|{{ #var: $vg-short }}]] | ||
+ | | icons = [[Category:Video game icons|{{ #var: $vg-short }}]] | ||
+ | | items = [[Category:{{ #var: $series | Video game }} items|{{ #var: $vg-short }}]] | ||
+ | | locations = [[Category:{{ #var: $series | Video game }} locations|{{ #var: $vg-short }}]] | ||
+ | | Property icons = [[Category:Video game Property icons|{{ #var: $vg-short }}]] | ||
+ | | set images = [[Category:Video game set images|{{ #var: $vg-short }}]] | ||
+ | | sets = [[Category:Video game sets|{{ #var: $vg-short }}]] | ||
+ | | Starter Decks = [[Category:Starter Decks|{{ #var: $vg-short }}]] | ||
+ | | Structure Decks = [[Category:Structure Decks|{{ #var: $vg-short }}]] | ||
+ | | Type icons = [[Category:Type icons|{{ #var: $vg-short }}]] | ||
}} | }} | ||
| [[Category:Video games|{{ #var: $vg-short }}]] | | [[Category:Video games|{{ #var: $vg-short }}]] | ||
− | }}</includeonly><noinclude> | + | }}</includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 02:53, 7 December 2023
This category contains images of counter icons from the video game Yu-Gi-Oh! Duel Links.