Difference between revisions of "Template:Type card list"

From Yugipedia
Jump to: navigation, search
(update SMW check)
("Immortal (manga)" renamed to "Invincible")
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{ #varexists: $smw || {{ #vardefine: $smw | {{ #if: {{ #set: }} || 1 }} }}<!-- standard implementation -->
 
{{ #varexists: $smw || {{ #vardefine: $smw | {{ #if: {{ #set: }} || 1 }} }}<!-- standard implementation -->
}}{{ #vardefine: $pagename | {{PAGENAME<noinclude>:List of Illusion Magic-Type monsters</noinclude>}}
+
}}{{ #vardefine: $pagename | {{PAGENAME<noinclude>:List of Invincible-Type support cards</noinclude>}}
}}{{ #vardefine: $monster_type | {{ #sub: {{ #explode: {{ #var: $pagename }} | -Type | 0 }} | 8 }}
+
}}{{ #vardefine: $type_link | {{ #sub: {{ #explode: {{ #var: $pagename }} | -Type | 0 }} | 8 }}
}}{{ #switch: {{ #var: $monster_type }} | Illusion Magic | Galaxy = {{ #vardefine: $monster_type | {{ #var: $monster_type }} (Type) }}
+
}}{{ #switch: {{ #var: $type_link }} | Daemon | Gadget | Galaxy | Knight | Magic = {{ #vardefine: $type_link | {{ #var: $type_link }} (Type) }}
}}{{ #vardefine: $display_type | {{trim|{{ #explode: {{ #var: $monster_type }} | ( }}}}
+
}}{{ #vardefine: $type_name | {{trim|{{ #explode: {{ #var: $type_link }} | ( }}}}
 +
}}{{ #vardefine: $type_list_name | {{trim|{{ #explode: {{ #var: $type_link }} | (Type }}}}
 
}}{{ #vardefine: $list_type | {{ #explode: {{ #var: $pagename }} || -2 }}
 
}}{{ #vardefine: $list_type | {{ #explode: {{ #var: $pagename }} || -2 }}
 
}}{{ #vardefine: $list_type | {{ #switch: {{ #var: $list_type }} | support | anti-support = {{ #var: $list_type }} }}
 
}}{{ #vardefine: $list_type | {{ #switch: {{ #var: $list_type }} | support | anti-support = {{ #var: $list_type }} }}
 
}}{{Card list
 
}}{{Card list
 
| type = {{ #if: {{ #var: $list_type }} || monster }}
 
| type = {{ #if: {{ #var: $list_type }} || monster }}
| intro = {{ #if: {{ #var: $smw }} || {{SMW notice}} }}This is a '''list of [[{{ #var: $monster_type }}|{{ #var: $display_type }}]]-[[Type]] {{ #if: {{ #var: $list_type }} | [[{{ #var: $list_type }}]] cards | [[Monster Card|monsters]] }}'''.
+
| intro = {{ #if: {{ #var: $smw }} || {{SMW notice}} }}This is a '''list of [[{{ #var: $type_link }}|{{ #var: $type_name }}]]-[[Type]] {{ #if: {{ #var: $list_type }} | [[{{ #var: $list_type }}]] cards | [[Monster Card|monsters]] }}'''.
 
{{ #if: {{ #var: $list_type }} |  
 
{{ #if: {{ #var: $list_type }} |  
* For a list of cards, see [[List of {{ #var: $display_type }}-Type monsters]].
+
* For a list of cards, see [[List of {{ #var: $type_list_name }}-Type monsters]].
}}{{ #ifeq: {{ #var: $list_type }} | support || {{ #ifexpr: {{ #ask: [[Support::{{ #var: $monster_type }}]] | format=count }} > 0 |  
+
}}{{ #ifeq: {{ #var: $list_type }} | support || {{ #ifexpr: {{ #ask: [[Support::{{ #var: $type_link }}]] | format=count }} > 0 |  
* For a list of [[support]] cards, see [[List of {{ #var: $display_type }}-Type support cards]].
+
* For a list of [[support]] cards, see [[List of {{ #var: $type_list_name }}-Type support cards]].
}} }}{{ #ifeq: {{ #var: $list_type }} | anti-support || {{ #ifexpr: {{ #ask: [[Anti-support::{{ #var: $monster_type }}]] | format=count }} > 0 |  
+
}} }}{{ #ifeq: {{ #var: $list_type }} | anti-support || {{ #ifexpr: {{ #ask: [[Anti-support::{{ #var: $type_link }}]] | format=count }} > 0 |  
* For a list of [[anti-support]] cards, see [[List of {{ #var: $display_type }}-Type anti-support cards]].
+
* For a list of [[anti-support]] cards, see [[List of {{ #var: $type_list_name }}-Type anti-support cards]].
 
}} }}
 
}} }}
| header_pattern = {{ #var: $display_type }}-Type {{ #var: $list_type }} $type
+
| header_pattern = {{ #var: $type_name }}-Type {{ #var: $list_type }} $type
| query = [[{{ #var: $list_type | Type }}::{{ #var: $monster_type }}]]
+
| query = [[{{ #var: $list_type | Type }}::{{ #var: $type_link }}]]
 
| navboxes = {{Card lists}}
 
| navboxes = {{Card lists}}
| categories = [[Category:{{ #if: {{ #var: $list_type }} | Cards | Monsters }} by Type {{ #var: $list_type }}|{{ #var: $monster_type }}]]
+
| categories = [[Category:{{ #if: {{ #var: $list_type }} | Cards | Monsters }} by Type {{ #var: $list_type }}|{{ #var: $type_link }}]]
 
| t = 1
 
| t = 1
 
}}
 
}}
  
 
<noinclude>[[Category:Card list templates]]</noinclude>
 
<noinclude>[[Category:Card list templates]]</noinclude>

Latest revision as of 22:21, 19 April 2024

This is a list of Invincible-Type support cards.

Invincible-Type support cards

NameJapanese nameCard typeProperty
Call of the Haunted (manga)リビング・デッド生ける屍ごえSpell CardContinuous Spell Card