Difference between revisions of "Template:Type card list"

From Yugipedia
Jump to: navigation, search
(rewrite with variables)
("Immortal (manga)" renamed to "Invincible")
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ #vardefine: $smw | {{ #var: $smw | {{ #if: {{ #arraymap: }} || 1 }} }}<!-- standard implementation -->
+
{{ #varexists: $smw || {{ #vardefine: $smw | {{ #if: {{ #set: }} || 1 }} }}<!-- standard implementation -->
}}{{ #vardefine: $pagename | {{PAGENAME<noinclude>:List of Sea Serpent-Type anti-support cards</noinclude>}}
+
}}{{ #vardefine: $pagename | {{PAGENAME<noinclude>:List of Invincible-Type support cards</noinclude>}}
}}{{ #vardefine: $type | {{ #sub: {{ #explode: {{ #var: $pagename }} | -Type | 0 }} | 8 }}
+
}}{{ #vardefine: $type_link | {{ #sub: {{ #explode: {{ #var: $pagename }} | -Type | 0 }} | 8 }}
 +
}}{{ #switch: {{ #var: $type_link }} | Daemon | Gadget | Galaxy | Knight | Magic = {{ #vardefine: $type_link | {{ #var: $type_link }} (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 }} }}
}}__NOEDITSECTION__{{ #if: {{ #var: $smw }} || {{SMW notice}} }}{{TOC}}This is a '''list of [[{{ #var: $type }}]]-[[Type]] {{ #if: {{ #var: $list_type }} | [[{{ #var: $list_type }}]] cards | [[Monster Card]]s }}'''.
+
}}{{Card list
 +
| type = {{ #if: {{ #var: $list_type }} || monster }}
 +
| 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: $type }}-Type monsters]].
+
* For a list of cards, see [[List of {{ #var: $type_list_name }}-Type monsters]].
}}{{ #ifeq: {{ #var: $list_type }} | support ||
+
}}{{ #ifeq: {{ #var: $list_type }} | support || {{ #ifexpr: {{ #ask: [[Support::{{ #var: $type_link }}]] | format=count }} > 0 |
* For a list of [[support]] cards, see [[List of {{ #var: $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 ||  
+
}} }}{{ #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: $type }}-Type anti-support cards]].
+
* For a list of [[anti-support]] cards, see [[List of {{ #var: $type_list_name }}-Type anti-support cards]].
}}<div style="clear:both;"></div>
+
}} }}
== ''OCG''/''TCG'' {{ #var: $type }}-Type {{ #if: {{ #var: $list_type }} | {{ #var: $list_type }} cards | Monster Cards }} ==
+
| header_pattern = {{ #var: $type_name }}-Type {{ #var: $list_type }} $type
{{Card query|[[{{ #var: $list_type | Type }}::{{ #var: $type }}]]|medium=official|type=monster}}
+
| query = [[{{ #var: $list_type | Type }}::{{ #var: $type_link }}]]
{{ #if: {{ #var: $list_type }} | {{Card query|[[{{ #var: $list_type }}::{{ #var: $type }}]]|medium=official|type=non-monster}}
+
| navboxes = {{Card lists}}
 +
| categories = [[Category:{{ #if: {{ #var: $list_type }} | Cards | Monsters }} by Type {{ #var: $list_type }}|{{ #var: $type_link }}]]
 +
| t = 1
 
}}
 
}}
== Anime {{ #var: $type }}-Type {{ #if: {{ #var: $list_type }} | {{ #var: $list_type }} cards | Monster Cards }} ==
 
{{Card query|[[{{ #var: $list_type | Type }}::{{ #var: $type }}]]|medium=anime|type=monster}}
 
{{ #if: {{ #var: $list_type }} | {{Card query|[[{{ #var: $list_type }}::{{ #var: $type }}]]|medium=anime|type=non-monster}}
 
}}
 
== Manga {{ #var: $type }}-Type {{ #if: {{ #var: $list_type }} | {{ #var: $list_type }} cards | Monster Cards }} ==
 
{{Card query|[[{{ #var: $list_type | Type }}::{{ #var: $type }}]]|medium=manga|type=monster}}
 
{{ #if: {{ #var: $list_type }} | {{Card query|[[{{ #var: $list_type }}::{{ #var: $type }}]]|medium=manga|type=non-monster}}
 
}}
 
== All {{ #var: $type }}-Type {{ #if: {{ #var: $list_type }} | {{ #var: $list_type }} cards | Monster Cards }} ==
 
{{Card query|[[{{ #var: $list_type | Type }}::{{ #var: $type }}]]|type=monster}}
 
{{ #if: {{ #var: $list_type }} | {{Card query|[[{{ #var: $list_type }}::{{ #var: $type }}]]|type=non-monster}}
 
}}
 
{{Card lists}}
 
 
<includeonly>[[Category:{{ #if: {{ #var: $list_type }} | Cards | Monsters }} by Type {{ #var: $list_type }}|{{ #var: $type }}]]</includeonly>
 
  
 
<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