Changes

Jump to: navigation, search

Template:Anime card

141 bytes added, 5 years ago
properly support "Normal" as a monster type
-->{{ #vardefine: $property | {{{property|}}} }}<!--
-->{{ #vardefine: $attribute | {{ uc: {{{attribute<includeonly>|</includeonly>}}} }} }}<!--
-->{{ #vardefine: $types | {{{types<includeonly>|</includeonly>}}} }}<!---->{{ #vardefine: $type | {{ #explode: {{{#var: $types|}}} | / }} }}<!---->{{ #vardefine: $type2 | {{ #explode: {{{#var: $types|}}} | / | 1 }} }}<!---->{{ #vardefine: $type3 | {{ #explode: {{{#var: $types|}}} | / | 2 }} }}<!---->{{ #vardefine: $type4 | {{ #explode: {{{#var: $types|}}} | / | 3 }} }}<!---->{{ #vardefine: $type5 | {{ #explode: {{{#var: $types|}}} | / | 4 }} }}<!---->{{ #vardefine: $type6 | {{ #explode: {{{#var: $types|}}} | / | 5 }} }}<!--
-->{{ #vardefine: $level-rank | {{ #ifeq: {{ #var: $type2 }} | Xyz | Rank | Level }} }}<!--
-->{{ #vardefine: $stars | {{var|{{{level<includeonly>|</includeonly>}}}|{{{rank|}}}}} }}<!--
-->{{ #arraydefine: @link_arrows| {{{link_arrows|}}} }}<!--
-->{{ #vardefine: $link_rating | {{ #arraysize: @link_arrows }} }}<!--
-->{{ #vardefine: $is_pendulum | {{ #pos: {{{#var: $types|}}} | Pendulum }}{{{pendulum_effect|}}}{{{ja_pendulum_effect<includeonly>|</includeonly>}}} }}<!---->{{ #arraydefine: @types | {{ lc: {{{#var: $types}}} }} | / }}<!--
-->{{ #vardefine: $non-effect_monster | {{ #arraysearch: @types | /(link{{!}}fusion{{!}}ritual{{!}}synchro{{!}}xyz)/ }} }}<!--
-->{{ #vardefine: $has_lore | {{{lore|}}}{{{material|}}}{{{ja_lore|}}}{{{ja_material<includeonly>|</includeonly>}}} }}<!--
| ??? = {{ #vardefine: $type2_page | {{ #var: $type2 }} }}
| Normal
| Effect
| Fusion
| {{ #if: {{ #var: $card_type }}
| {{ #switch: {{ #var: $card_type }} | Legendary Dragon = ritual | Speed Spell = spell | #default = {{ lc: {{ #var: $card_type }} }} }}
| {{ #if: {{{#var: $types|}}}
| {{ #ifeq: {{ #var: $type3 }} | Pendulum | pendulum-card }} {{ #switch: {{ #var: $primary_type }}
| Dark Synchro = darksynchro
| 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|}}}{{{#var: $types|}}}{{ #var: $atk }}{{ #var: $def }}{{{link_arrows|}}}{{{pendulum_effect|}}}
| <div class="lore">{{ #if: {{{pendulum_effect<includeonly>|</includeonly>}}}{{{pendulum_scale|}}}
| <div class="lorebox lorebox--pendulum">
<div class="lorebox-pendulum_scale nomobile" aria-hidden="true">{{{pendulum_scale<includeonly>|</includeonly>}}}</div>
</div>
}}<div class="lorebox lorebox--main">{{ #if: {{{#var: $types<includeonly>|</includeonly>}}} |<!----><nowiki>[</nowiki> <div class="hlist hslash card-table-types">{{Anime card/types|{{{#var: $types|}}}}}</div> <nowiki>]</nowiki>
}}{{ #if: {{{type_text|}}} | {{{type_text}}} }}{{{types_note|}}}<!--
}}
{{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;
==Search categories==
{{Search categories
| monster = {{ #if: {{ #var: $atk }}{{ #var: $def }}{{{link_arrows|}}}{{ #var: $stars }}{{{#var: $types|}}} | 1 }}
| monster_type = {{ #switch: {{ #var: $primary_type }} | Fusion | Ritual | Synchro | Xyz = 1 }}
| token = {{ #pos: {{{#var: $types}}} | Token }}
| supports = {{{supports<includeonly>|</includeonly>}}}
| anti-supports = {{{anti-supports<includeonly>|</includeonly>}}}
}}<!--
-->{{ #if: {{ #pos: {{{#var: $types}}} | Token }} | {{Tokens}} }}<!--
-->{{ #if: {{NAMESPACE}}

Navigation menu