Difference between revisions of "Template:Anime card"
Dinoguy1000 (talk | contribs) (add extra options to {{Search categories}}; misc cleanup/tweaks) |
Dinoguy1000 (talk | contribs) (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: {{ | + | -->{{ #vardefine: $types | {{{types<includeonly>|</includeonly>}}} }}<!-- |
− | -->{{ #vardefine: $type2 | {{ #explode: {{ | + | -->{{ #vardefine: $type | {{ #explode: {{ #var: $types }} | / }} }}<!-- |
− | -->{{ #vardefine: $type3 | {{ #explode: {{ | + | -->{{ #vardefine: $type2 | {{ #explode: {{ #var: $types }} | / | 1 }} }}<!-- |
− | -->{{ #vardefine: $type4 | {{ #explode: {{ | + | -->{{ #vardefine: $type3 | {{ #explode: {{ #var: $types }} | / | 2 }} }}<!-- |
− | -->{{ #vardefine: $type5 | {{ #explode: {{ | + | -->{{ #vardefine: $type4 | {{ #explode: {{ #var: $types }} | / | 3 }} }}<!-- |
− | -->{{ #vardefine: $type6 | {{ #explode: {{ | + | -->{{ #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: {{ | + | -->{{ #vardefine: $is_pendulum | {{ #pos: {{ #var: $types }} | Pendulum }}{{{pendulum_effect|}}}{{{ja_pendulum_effect<includeonly>|</includeonly>}}} }}<!-- |
− | -->{{ #arraydefine: @types | {{ lc: {{ | + | -->{{ #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: {{ | + | | {{ #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|}}}{{ | + | | 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: {{ | + | }}<div class="lorebox lorebox--main">{{ #if: {{ #var: $types }} |<!-- |
− | --><nowiki>[</nowiki> <div class="hlist hslash card-table-types">{{Anime card/types|{{ | + | --><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: {{ | + | {{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>}}} |   | -->{{ #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>}}} |   | ||
Line 613: | Line 615: | ||
==Search categories== | ==Search categories== | ||
{{Search categories | {{Search categories | ||
− | | monster = {{ #if: {{ #var: $atk }}{{ #var: $def }}{{{link_arrows|}}}{{ #var: $stars }}{{ | + | | 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: {{ | + | | 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: {{ | + | -->{{ #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}}}]] |
Link Arrows | |
Effect type |
|
Ritual Card | [[{{{ritual_card}}}|{{{ritual_card}}}]] |
Material |
|
Summoned by the effect of |
|
{{{non-card}}} | |
Description | {{{description}}} |
Pendulum Scale | [[Pendulum Scale {{{pendulum_scale}}} Monster Cards|{{{pendulum_scale}}}]] |
{{{pendulum_scale}}}
{{{pendulum_effect}}}
{{{pendulum_scale}}}
| |
Deck Master ability | {{{deck_master_ability}}} |
Appearances |
|
Links | yugioh.com |
Anime cards (Galleries: Yu-Gi-Oh! · Pyramid of Light · GX · 5D's · Bonds Beyond Time · ZEXAL · ARC-V · The Dark Side of Dimensions · VRAINS)
- [[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 Effect | Lore | |
---|---|---|---|
French | {{{fr_name}}} | {{{fr_pendulum_effect}}} | {{{fr_material}}} |
German | {{{de_name}}} | {{{de_pendulum_effect}}} | {{{de_material}}} |
Italian | {{{it_name}}} | {{{it_pendulum_effect}}} | {{{it_material}}} |
Portuguese | {{{pt_name}}} | {{{pt_pendulum_effect}}} | {{{pt_material}}} |
Spanish | {{{es_name}}} | {{{es_pendulum_effect}}} | {{{es_material}}} |
Japanese | {{{ja_name}}} | {{{ja_pendulum_effect}}} | {{{ja_material}}} |
{{{romaji_name}}} | |||
Korean | {{{ko_name}}} | {{{ko_pendulum_effect}}} | {{{ko_material}}} |
{{{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}}}]]
- 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}}}]]
Categories:
- Card table templates
- Card table parameter tracking (bodystyle)
- Card table parameter tracking (titlestyle)
- Card table parameter tracking (bodyclass)
- Card table parameter tracking (below image)
- Card table parameter tracking (belowclass)
- ((Card table)) transclusions using unknown parameters
- Fully protected templates