Permanently protected template

Difference between revisions of "Template:Anime card"

From Yugipedia
Jump to: navigation, search
(add extra options to {{Search categories}}; misc cleanup/tweaks)
(properly support "Normal" as a monster type)
Line 25: Line 25:
 
-->{{ #vardefine: $property    | {{{property|}}}                                      }}<!--
 
-->{{ #vardefine: $property    | {{{property|}}}                                      }}<!--
 
-->{{ #vardefine: $attribute    | {{ uc: {{{attribute<includeonly>|</includeonly>}}} }} }}<!--
 
-->{{ #vardefine: $attribute    | {{ uc: {{{attribute<includeonly>|</includeonly>}}} }} }}<!--
-->{{ #vardefine: $type        | {{ #explode: {{{types|}}} | / }}                     }}<!--
+
-->{{ #vardefine: $types        | {{{types<includeonly>|</includeonly>}}}              }}<!--
-->{{ #vardefine: $type2        | {{ #explode: {{{types|}}} | / | 1 }}                 }}<!--
+
-->{{ #vardefine: $type        | {{ #explode: {{ #var: $types }} | / }}               }}<!--
-->{{ #vardefine: $type3        | {{ #explode: {{{types|}}} | / | 2 }}                 }}<!--
+
-->{{ #vardefine: $type2        | {{ #explode: {{ #var: $types }} | / | 1 }}           }}<!--
-->{{ #vardefine: $type4        | {{ #explode: {{{types|}}} | / | 3 }}                 }}<!--
+
-->{{ #vardefine: $type3        | {{ #explode: {{ #var: $types }} | / | 2 }}           }}<!--
-->{{ #vardefine: $type5        | {{ #explode: {{{types|}}} | / | 4 }}                 }}<!--
+
-->{{ #vardefine: $type4        | {{ #explode: {{ #var: $types }} | / | 3 }}           }}<!--
-->{{ #vardefine: $type6        | {{ #explode: {{{types|}}} | / | 5 }}                 }}<!--
+
-->{{ #vardefine: $type5        | {{ #explode: {{ #var: $types }} | / | 4 }}           }}<!--
 +
-->{{ #vardefine: $type6        | {{ #explode: {{ #var: $types }} | / | 5 }}           }}<!--
 
-->{{ #vardefine: $level-rank  | {{ #ifeq: {{ #var: $type2 }} | Xyz | Rank | Level }}  }}<!--
 
-->{{ #vardefine: $level-rank  | {{ #ifeq: {{ #var: $type2 }} | Xyz | Rank | Level }}  }}<!--
 
-->{{ #vardefine: $stars        | {{var|{{{level<includeonly>|</includeonly>}}}|{{{rank|}}}}} }}<!--
 
-->{{ #vardefine: $stars        | {{var|{{{level<includeonly>|</includeonly>}}}|{{{rank|}}}}} }}<!--
Line 38: Line 39:
 
-->{{ #arraydefine: @link_arrows| {{{link_arrows|}}} }}<!--
 
-->{{ #arraydefine: @link_arrows| {{{link_arrows|}}} }}<!--
 
-->{{ #vardefine: $link_rating  | {{ #arraysize: @link_arrows }} }}<!--
 
-->{{ #vardefine: $link_rating  | {{ #arraysize: @link_arrows }} }}<!--
-->{{ #vardefine: $is_pendulum  | {{ #pos: {{{types|}}} | Pendulum }}{{{pendulum_effect|}}}{{{ja_pendulum_effect<includeonly>|</includeonly>}}}  }}<!--
+
-->{{ #vardefine: $is_pendulum  | {{ #pos: {{ #var: $types }} | Pendulum }}{{{pendulum_effect|}}}{{{ja_pendulum_effect<includeonly>|</includeonly>}}}  }}<!--
-->{{ #arraydefine: @types | {{ lc: {{{types}}} }} | / }}<!--
+
-->{{ #arraydefine: @types | {{ lc: {{ #var: $types }} }} | / }}<!--
 
-->{{ #vardefine: $non-effect_monster | {{ #arraysearch: @types | /(link{{!}}fusion{{!}}ritual{{!}}synchro{{!}}xyz)/ }} }}<!--
 
-->{{ #vardefine: $non-effect_monster | {{ #arraysearch: @types | /(link{{!}}fusion{{!}}ritual{{!}}synchro{{!}}xyz)/ }} }}<!--
 
-->{{ #vardefine: $has_lore    | {{{lore|}}}{{{material|}}}{{{ja_lore|}}}{{{ja_material<includeonly>|</includeonly>}}} }}<!--
 
-->{{ #vardefine: $has_lore    | {{{lore|}}}{{{material|}}}{{{ja_lore|}}}{{{ja_material<includeonly>|</includeonly>}}} }}<!--
Line 64: Line 65:
 
| ???            = {{ #vardefine: $type2_page  | {{ #var: $type2 }} }}
 
| ???            = {{ #vardefine: $type2_page  | {{ #var: $type2 }} }}
  
 +
| Normal
 
| Effect
 
| Effect
 
| Fusion
 
| Fusion
Line 238: Line 240:
 
   | {{ #if: {{ #var: $card_type }}
 
   | {{ #if: {{ #var: $card_type }}
 
     | {{ #switch: {{ #var: $card_type }} | Legendary Dragon = ritual | Speed Spell = spell | #default = {{ lc: {{ #var: $card_type }} }} }}
 
     | {{ #switch: {{ #var: $card_type }} | Legendary Dragon = ritual | Speed Spell = spell | #default = {{ lc: {{ #var: $card_type }} }} }}
     | {{ #if: {{{types|}}}
+
     | {{ #if: {{ #var: $types }}
 
       | {{ #ifeq: {{ #var: $type3 }} | Pendulum | pendulum-card }} {{ #switch: {{ #var: $primary_type }}
 
       | {{ #ifeq: {{ #var: $type3 }} | Pendulum | pendulum-card }} {{ #switch: {{ #var: $primary_type }}
 
         | Dark Synchro            = darksynchro
 
         | Dark Synchro            = darksynchro
Line 362: Line 364:
 
| data12      = {{ #if: {{{pendulum_scale<includeonly>|</includeonly>}}} | [[Pendulum Scale {{{pendulum_scale}}} Monster Cards|{{{pendulum_scale}}}]]{{{pendulum_scale_note|}}} }}
 
| data12      = {{ #if: {{{pendulum_scale<includeonly>|</includeonly>}}} | [[Pendulum Scale {{{pendulum_scale}}} Monster Cards|{{{pendulum_scale}}}]]{{{pendulum_scale_note|}}} }}
  
| data13      = {{ #if: {{{lore<includeonly>|</includeonly>}}}{{{4k_lore|}}}{{{material|}}}{{{types|}}}{{ #var: $atk }}{{ #var: $def }}{{{link_arrows|}}}{{{pendulum_effect|}}}
+
| data13      = {{ #if: {{{lore<includeonly>|</includeonly>}}}{{{4k_lore|}}}{{{material|}}}{{ #var: $types }}{{ #var: $atk }}{{ #var: $def }}{{{link_arrows|}}}{{{pendulum_effect|}}}
 
   | <div class="lore">{{ #if: {{{pendulum_effect<includeonly>|</includeonly>}}}{{{pendulum_scale|}}}
 
   | <div class="lore">{{ #if: {{{pendulum_effect<includeonly>|</includeonly>}}}{{{pendulum_scale|}}}
 
     | <div class="lorebox lorebox--pendulum">
 
     | <div class="lorebox lorebox--pendulum">
Line 369: Line 371:
 
         <div class="lorebox-pendulum_scale nomobile" aria-hidden="true">{{{pendulum_scale<includeonly>|</includeonly>}}}</div>
 
         <div class="lorebox-pendulum_scale nomobile" aria-hidden="true">{{{pendulum_scale<includeonly>|</includeonly>}}}</div>
 
       </div>
 
       </div>
     }}<div class="lorebox lorebox--main">{{ #if: {{{types<includeonly>|</includeonly>}}} |<!--
+
     }}<div class="lorebox lorebox--main">{{ #if: {{ #var: $types }} |<!--
--><nowiki>[</nowiki> <div class="hlist hslash card-table-types">{{Anime card/types|{{{types|}}}}}</div> <nowiki>]</nowiki>
+
--><nowiki>[</nowiki> <div class="hlist hslash card-table-types">{{Anime card/types|{{ #var: $types }}}}</div> <nowiki>]</nowiki>
 
   }}{{ #if: {{{type_text|}}} | {{{type_text}}} }}{{{types_note|}}}<!--
 
   }}{{ #if: {{{type_text|}}} | {{{type_text}}} }}{{{types_note|}}}<!--
  
Line 460: Line 462:
 
}}
 
}}
  
{{Card info links|{{ #var: $main | {{Normalized pagename|{{PAGENAME}}}} }}|type={{ #if: {{ #pos: {{{types}}} | Token }} | token }}|medium=anime}}<!--
+
{{Card info links|{{ #var: $main | {{Normalized pagename|{{PAGENAME}}}} }}|type={{ #if: {{ #pos: {{ #var: $types }} | Token }} | token }}|medium=anime}}<!--
  
 
-->{{ #if: {{{fr_name|}}}{{{fr_lore|}}}{{{fr_material|}}}{{{fr_pendulum_effect|}}}{{{de_name|}}}{{{de_lore|}}}{{{de_material|}}}{{{de_pendulum_effect|}}}{{{it_name|}}}{{{it_lore|}}}{{{it_material|}}}{{{it_pendulum_effect|}}}{{{pt_name|}}}{{{pt_lore|}}}{{{pt_material|}}}{{{pt_pendulum_effect|}}}{{{es_name|}}}{{{es_lore|}}}{{{es_material|}}}{{{es_pendulum_effect|}}}{{ #var: $ja_name }}{{{ja_lore|}}}{{{ja_material|}}}{{{ja_pendulum_effect|}}}{{{ko_name|}}}{{{ko_lore|}}}{{{ko_material|}}}{{{ko_pendulum_effect<includeonly>|</includeonly>}}} | &#32;
 
-->{{ #if: {{{fr_name|}}}{{{fr_lore|}}}{{{fr_material|}}}{{{fr_pendulum_effect|}}}{{{de_name|}}}{{{de_lore|}}}{{{de_material|}}}{{{de_pendulum_effect|}}}{{{it_name|}}}{{{it_lore|}}}{{{it_material|}}}{{{it_pendulum_effect|}}}{{{pt_name|}}}{{{pt_lore|}}}{{{pt_material|}}}{{{pt_pendulum_effect|}}}{{{es_name|}}}{{{es_lore|}}}{{{es_material|}}}{{{es_pendulum_effect|}}}{{ #var: $ja_name }}{{{ja_lore|}}}{{{ja_material|}}}{{{ja_pendulum_effect|}}}{{{ko_name|}}}{{{ko_lore|}}}{{{ko_material|}}}{{{ko_pendulum_effect<includeonly>|</includeonly>}}} | &#32;
Line 613: Line 615:
 
==Search categories==
 
==Search categories==
 
   {{Search categories
 
   {{Search categories
   | monster                  = {{ #if: {{ #var: $atk }}{{ #var: $def }}{{{link_arrows|}}}{{ #var: $stars }}{{{types|}}} | 1 }}
+
   | monster                  = {{ #if: {{ #var: $atk }}{{ #var: $def }}{{{link_arrows|}}}{{ #var: $stars }}{{ #var: $types }} | 1 }}
 
   | monster_type            = {{ #switch: {{ #var: $primary_type }} | Fusion | Ritual | Synchro | Xyz = 1 }}
 
   | monster_type            = {{ #switch: {{ #var: $primary_type }} | Fusion | Ritual | Synchro | Xyz = 1 }}
   | token                    = {{ #pos: {{{types}}} | Token }}
+
   | token                    = {{ #pos: {{ #var: $types }} | Token }}
 
   | supports                = {{{supports<includeonly>|</includeonly>}}}
 
   | supports                = {{{supports<includeonly>|</includeonly>}}}
 
   | anti-supports            = {{{anti-supports<includeonly>|</includeonly>}}}
 
   | anti-supports            = {{{anti-supports<includeonly>|</includeonly>}}}
Line 658: Line 660:
 
}}<!--
 
}}<!--
  
-->{{ #if: {{ #pos: {{{types}}} | Token }} | {{Tokens}} }}<!--
+
-->{{ #if: {{ #pos: {{ #var: $types }} | Token }} | {{Tokens}} }}<!--
  
 
-->{{ #if: {{NAMESPACE}}
 
-->{{ #if: {{NAMESPACE}}

Revision as of 22:49, 15 October 2018

{{{article_messages}}}

Anime card
Japanese
{{{ja_name}}}
Rōmaji
{{{romaji_name}}}
Translated
{{{trans_name}}}
Card type [[{{{card_type}}}]]
Property [[File:{{{property}}}.svg|18px|alt=]] [[{{{property}}} Card|{{{property}}}]]
Attribute [[File:{{{ATTRIBUTE}}}.svg|28px|alt=]] [[{{{ATTRIBUTE}}}]]
Level [[Level {{{level}}} Monster Cards|{{{level}}}]] CG Star Unknown.svg
Link Arrows

 
Effect type

  • [[{{{effect_types}}}|{{{effect_types}}}]]Property "Effect type" (as page type) with input value "{{{effect_types}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Ritual Card [[{{{ritual_card}}}|{{{ritual_card}}}]]
Material
  • "[[{{{material}}}|{{{material}}}]]"
Summoned by the effect of

  • "[[{{{token_summon}}}|{{{token_summon}}}]]"
{{{non-card}}}
Description {{{description}}}
Pendulum Scale [[Pendulum Scale {{{pendulum_scale}}} Monster Cards|{{{pendulum_scale}}}]]
{{{pendulum_scale}}}
{{{pendulum_effect}}}
{{{pendulum_scale}}}
[
[[{{{types}}}|{{{types}}}]]
]
  • "[[{{{material}}}|{{{material}}}]]"

{{{lore}}}
4K Media lore?: (The English card uses the same lore as the OCG/TCG card. The Japanese card and reference sources state the effect differently.): {{{4k_lore}}}
ATK / ???   DEF / ???
Deck Master ability {{{deck_master_ability}}}
Appearances
Links yugioh.com
  • [[Card Gallery:{{{main}}}|Gallery]]
  • [[Card Artworks:{{{main}}}|Artworks]]
  • [[Card Trivia:{{{main}}}|Trivia]]
  • [[Card Appearances:{{{main}}}|Appearances]]
  • [[Card Names:{{{main}}}|Names]]
  • [[Card Lores:{{{main}}}|Lores]]

Other languages

Name Pendulum EffectLore
French {{{fr_name}}} {{{fr_pendulum_effect}}}

{{{fr_material}}}

{{{fr_lore}}}
German {{{de_name}}} {{{de_pendulum_effect}}}

{{{de_material}}}

{{{de_lore}}}
Italian {{{it_name}}} {{{it_pendulum_effect}}}

{{{it_material}}}

{{{it_lore}}}
Portuguese {{{pt_name}}} {{{pt_pendulum_effect}}}

{{{pt_material}}}

{{{pt_lore}}}
Spanish {{{es_name}}} {{{es_pendulum_effect}}}

{{{es_material}}}

{{{es_lore}}}
Japanese {{{ja_name}}} {{{ja_pendulum_effect}}}

{{{ja_material}}}

{{{ja_lore}}}
{{{romaji_name}}}
Korean {{{ko_name}}} {{{ko_pendulum_effect}}}

{{{ko_material}}}

{{{ko_lore}}}
{{{ko_rr_name}}}

Images

Decks

  • [[{{{decks}}}|{{{decks}}}]]

Search categories

Supports
[[{{{supports}}}|{{{supports}}}]]
Anti-supports
[[{{{anti-supports}}}|{{{anti-supports}}}]]
Archetypes and series
[[{{{archseries}}}|{{{archseries}}}]]
Supports archetypes
"[[{{{supports archetypes}}}|{{{supports archetypes}}}]]"
Anti-supports archetypes
"[[{{{anti-supports archetypes}}}|{{{anti-supports archetypes}}}]]"
Related to archetypes and series
[[{{{related to archseries}}}|{{{related to archseries}}}]]
Counters
[[{{{counter}}}|{{{counter}}}]]
Actions
[[{{{action}}}|{{{action}}}]]
Stat changes
[[{{{stat_change}}}|{{{stat_change}}}]]
Monster/Spell/Trap categories
[[{{{m/s/t}}}|{{{m/s/t}}}]]
Summoning categories
[[{{{summoning}}}|{{{summoning}}}]]
Attack categories
[[{{{attack}}}|{{{attack}}}]]
Banished categories
[[{{{banished}}}|{{{banished}}}]]
LP
[[{{{life_points}}}|{{{life_points}}}]]
Fusion Material for
"[[{{{fm for}}}|{{{fm for}}}]]"
Synchro Material for
"[[{{{sm for}}}|{{{sm for}}}]]"
Miscellaneous
[[{{{misc}}}|{{{misc}}}]]