Difference between revisions of "Template:Duel Links card"

From Yugipedia
Jump to: navigation, search
(make the navboxes stack properly)
(moving stats and Types out of the lore box)
Line 269: Line 269:
 
   }}
 
   }}
  
| label5        = [[{{ #var: $level-rank }}]]
+
| label5 = [[Type]]{{ #if: {{ #var: $type2 }} | s }}
| data5         = {{ #if: {{ #var: $card_type }} || {{ #if: {{{level|}}}{{{rank<includeonly>|</includeonly>}}}
+
| data5  = {{ #if: {{ #var: $type }}
 +
  | [[{{ ucfirst: {{ #var: $type }} }}|{{ #explode: {{ #var: $type }} | ( }}]]
 +
  }} <!--
 +
 
 +
  -->{{ #if: {{ #var: $type2 }}
 +
  | / [[{{ #switch: {{ #var: $type2 }}
 +
    | Token = Monster Token
 +
    | Toon | Spirit | Union | Gemini | Flip | Tuner = {{ #var: $type2 }} monster
 +
    | #default = {{ #var: $type2 }} Monster
 +
    }}|{{ #var: $type2 }}]]
 +
  }} <!--
 +
 
 +
  -->{{ #if: {{ #var: $type3 }}
 +
  | / [[{{ #switch: {{ #var: $type3 }}
 +
    | Token = Monster Token
 +
    | Toon | Spirit | Union | Gemini | Flip | Tuner = {{ #var: $type3 }} monster
 +
    | #default = {{ #if: {{ #var: $skill }} | {{ #var: $type3 }} Card | {{ #var: $type3 }} Monster }}
 +
    }}|{{ #var: $type3 }}]]
 +
  }} <!--
 +
 
 +
  -->{{ #if: {{ #var: $type4 }}
 +
  | / [[{{ #var: $type4 }} Monster|{{ #var: $type4 }}]]
 +
  }}
 +
 
 +
| label6         = [[{{ #var: $level-rank }}]]
 +
| data6         = {{ #if: {{ #var: $card_type }} || {{ #if: {{{level|}}}{{{rank<includeonly>|</includeonly>}}}
 
   | [[{{ #var: $level-rank }} {{ #var: $stars | ??? }} Monster Cards|{{ #var: $stars | ??? }}]] {{ #var: $star_icon }}
 
   | [[{{ #var: $level-rank }} {{ #var: $stars | ??? }} Monster Cards|{{ #var: $stars | ??? }}]] {{ #var: $star_icon }}
 
   }} }}
 
   }} }}
  
| label6         = [[Link Arrow]]s
+
| label7         = [[Link Arrow]]s
| data6         = {{ #if: {{{link_arrows<includeonly>|</includeonly>}}}
+
| data7         = {{ #if: {{{link_arrows<includeonly>|</includeonly>}}}
 
   | <div style="display: flex;align-items:center;">{{Link map|{{{link_arrows|}}}|alt=}}&nbsp;<!--
 
   | <div style="display: flex;align-items:center;">{{Link map|{{{link_arrows|}}}|alt=}}&nbsp;<!--
 
     --><div>{{ #arrayprint: @link_arrows | , <nowiki /> | $linkArrow
 
     --><div>{{ #arrayprint: @link_arrows | , <nowiki /> | $linkArrow
Line 283: Line 308:
 
   }}
 
   }}
  
| label7         = Effect type
+
| label8         = [[Pendulum Scale]]
| class7        = hlist hcomma
+
| data8          = {{ #if: {{{pendulum_scale<includeonly>|</includeonly>}}}
| data7          = {{ #if: {{{effect_types<includeonly>|</includeonly>}}}
+
  | [[File:Pendulum Scale.png|18px]] <!--
 +
    -->[[Pendulum Scale {{{pendulum_scale}}} Monster Cards|{{{pendulum_scale}}}]]<!--
 +
    -->[[{{ #iferror: {{ #expr: {{{pendulum_scale}}} }} | ? | }}Pendulum Scale::{{{pendulum_scale}}}| ]]<!--
 +
    -->[[Pendulum Scale string::{{{pendulum_scale}}}| ]]
 +
  }}
 +
 
 +
| label9        = [[ATK]] / {{ #if: {{{link_arrows|}}} | [[Link Rating|LINK]] | [[DEF]] }}
 +
| data9          = {{ #if: {{{atk<includeonly>|</includeonly>}}}{{{def|}}}{{{link_arrows|}}}
 +
  | {{ #if: {{{atk<includeonly>|</includeonly>}}}
 +
    | [[{{{atk}}} ATK Monster Cards|{{{atk}}}]]{{{atk_note|}}}
 +
    }} <!--
 +
 
 +
    -->{{ #if: {{{link_arrows|}}}
 +
    | / {{ #arraydefine: @linkArrows | {{{link_arrows}}} }}<!--
 +
      -->{{ #vardefine: $linkRating | {{ #arraysize: @linkArrows }} }}<!--
 +
      -->[[Link {{ #var: $linkRating }} Monster Cards|{{ #var: $linkRating }}]]<!--
 +
      -->[[Link Rating::{{ #var: $linkRating }}| ]]
 +
    | {{ #if: {{{def<includeonly>|</includeonly>}}}
 +
      | / [[{{{def}}} DEF Monster Cards|{{{def}}}]]{{{def_note|}}}{{{atk-def_note|}}}
 +
      }}
 +
    }}{{ATK DEF properties|{{{atk|}}}|{{{def|}}}}}
 +
  }}
 +
 
 +
| label10        = Effect type
 +
| class10        = hlist hcomma
 +
| data10        = {{ #if: {{{effect_types<includeonly>|</includeonly>}}}
 
   | {{CardTable2/effect|{{{effect_types<includeonly>|</includeonly>}}}}}
 
   | {{CardTable2/effect|{{{effect_types<includeonly>|</includeonly>}}}}}
 
   }}
 
   }}
  
| label8        = [[Ritual Spell Card|Ritual Card]]
+
| label11        = [[Ritual Spell Card|Ritual Card]]
| data8          = {{ #if: {{{ritual_card<includeonly>|</includeonly>}}}
+
| data11        = {{ #if: {{{ritual_card<includeonly>|</includeonly>}}}
 
   | [[{{{ritual_card}}}|{{ #explode: {{{ritual_card}}} | ( }}]]
 
   | [[{{{ritual_card}}}|{{ #explode: {{{ritual_card}}} | ( }}]]
 
   }}
 
   }}
  
| label9        = {{ #switch: {{ #var: $primary_type }}
+
| label12        = {{ #switch: {{ #var: $primary_type }}
 
   | Fusion  = [[Fusion Material]]
 
   | Fusion  = [[Fusion Material]]
 
   | Synchro  = [[Synchro Material]]
 
   | Synchro  = [[Synchro Material]]
Line 300: Line 350:
 
   | #default = [[Material]]
 
   | #default = [[Material]]
 
   }}
 
   }}
| data9          = {{ #vardefineecho: $material_string | {{ #if: {{{material<includeonly>|</includeonly>}}} |
+
| data12        = {{ #vardefineecho: $material_string | {{ #if: {{{material<includeonly>|</includeonly>}}} |
 
<div class="hlist hplus">{{ #arraydefine: @material | {{{material}}} | *
 
<div class="hlist hplus">{{ #arraydefine: @material | {{{material}}} | *
 
}}{{ #if: {{ #arrayindex: @material | 0 }} || {{ #arrayslice: @material | $material | 1 | {{ #arraysize: @material }} }}
 
}}{{ #if: {{ #arrayindex: @material | 0 }} || {{ #arrayslice: @material | $material | 1 | {{ #arraysize: @material }} }}
Line 309: Line 359:
 
   }} }}
 
   }} }}
  
| class10       = hlist hcomma
+
| class13       = hlist hcomma
| label10       = [[Summon]]ed by the effect of
+
| label13       = [[Summon]]ed by the effect of
| data10         = {{ #if: {{{token_summon<includeonly>|</includeonly>}}}
+
| data13         = {{ #if: {{{token_summon<includeonly>|</includeonly>}}}
 
     | {{ #arraydefine: @token_summons | {{{token_summon}}} | * | unique }}{{ #arrayprint: @token_summons || $token_summoner | <nowiki/>
 
     | {{ #arraydefine: @token_summons | {{{token_summon}}} | * | unique }}{{ #arrayprint: @token_summons || $token_summoner | <nowiki/>
 
* "[[$token_summoner|{{ #explode: $token_summoner | ( }}]]" }}
 
* "[[$token_summoner|{{ #explode: $token_summoner | ( }}]]" }}
 
   }}
 
   }}
  
| label11        = [[Pendulum Scale]]
+
| label14       = [[Status]]
| data11        = {{ #if: {{{pendulum_scale<includeonly>|</includeonly>}}} | [[Pendulum Scale {{{pendulum_scale}}} Monster Cards|{{{pendulum_scale}}}]]{{{pendulum_scale_note|}}} }}
+
| data14         = {{ #if: {{{status<includeonly>|</includeonly>}}}  
 
 
| label12       = [[Status]]
 
| data12         = {{ #if: {{{status<includeonly>|</includeonly>}}}  
 
 
   | [[File:DULI-Status-{{ #replace: {{{status}}} | <nowiki> </nowiki> }}.png|28px|alt=]] [[Status::{{{status}}}|{{{status}}}]]
 
   | [[File:DULI-Status-{{ #replace: {{{status}}} | <nowiki> </nowiki> }}.png|28px|alt=]] [[Status::{{{status}}}|{{{status}}}]]
 
   | {{ #ifeq: {{{rarity}}} | ??? | [[Status::Not yet released]] | [[Status::Unlimited]] }}
 
   | {{ #ifeq: {{{rarity}}} | ??? | [[Status::Not yet released]] | [[Status::Unlimited]] }}
 
   }}
 
   }}
  
| data13         = {{ #if: {{{lore<includeonly>|</includeonly>}}}{{{material|}}}{{{types|}}}{{ #var: $atk }}{{ #var: $def }}{{{link_arrows|}}}{{{pendulum_effect|}}}
+
| data15         = {{ #if: {{{lore<includeonly>|</includeonly>}}}{{{material|}}}{{{pendulum_effect|}}}
   | <div class="lore">{{ #if: {{{pendulum_effect<includeonly>|</includeonly>}}}{{{pendulum_scale|}}}
+
   | <div class="lore">
    | <div class="lorebox lorebox--pendulum">
+
<!--
        <div class="lorebox-pendulum_scale nomobile" aria-hidden="true">{{{pendulum_scale<includeonly>|</includeonly>}}}</div>
+
    -->{{ #if: {{{pendulum_effect<includeonly>|</includeonly>}}} |  
        <div class="lorebox-lore lorebox-lore--pendulum">{{{pendulum_effect<includeonly>|</includeonly>}}}</div>
+
; '''Pendulum Effect'''
        <div class="lorebox-pendulum_scale nomobile" aria-hidden="true">{{{pendulum_scale<includeonly>|</includeonly>}}}</div>
+
: {{{pendulum_effect}}}{{ #set: Pendulum Effect = {{{pendulum_effect}}} }}<!--
       </div>
+
       -->{{ #if: {{ #var: $no_lore }} ||
    }}<div class="lorebox lorebox--main">{{ #if: {{{types<includeonly>|</includeonly>}}} |<!--
+
; '''Monster Effect'''
--><nowiki>[</nowiki> <div class="hlist hslash card-table-types">{{Anime card/types|{{{types|}}}}}</div> <nowiki>]</nowiki>
+
:
  }}<!--
+
      }}
 +
    }}<!--
  
--><div class="lorebox-lore">{{ #if: {{{material<includeonly>|</includeonly>}}}
+
    -->{{ #if: {{{material<includeonly>|</includeonly>}}}
 
     | {{ #var: $material_string }}<br />
 
     | {{ #var: $material_string }}<br />
     }}{{{lore<includeonly>|</includeonly>}}}</div><!--
+
     }}<!--
 
 
-->{{ #if: {{ #var: $card_type }} || {{ #if: {{ #var: $atk }}{{ #var: $def }}{{{link_arrows<includeonly>|</includeonly>}}}
 
  | <div class="lorebox-stats">[[ATK]] / [[{{ #var: $atk | ??? }} ATK Monster Cards|{{ #var: $atk | ??? }}]]{{{atk_note|}}} &nbsp; <!--
 
-->{{ #if: {{{link_arrows|}}}{{ #ifeq: {{ #var: $type2 }} | Link | 1 }}
 
    | [[Link Rating|LINK]] – [[Link {{ #var: $link_rating | ??? }} Monster Cards|{{ #var: $link_rating | ??? }}]]
 
    | [[DEF]] / [[{{ #var: $def | ??? }} DEF Monster Cards|{{ #var: $def | ??? }}]]{{{def_note|}}}
 
    }} {{{atk-def_note|}}}</div>
 
  }}
 
}}
 
  
 +
    -->{{{lore}}}
 +
</div>
 +
  }}
 
}}<!--
 
}}<!--
 
 
--></div></div>
 
  }}<!--
 
  
 
-->{{Card info links|{{ #var: $main | {{Normalized pagename|{{PAGENAME}}}} }}|type={{ #if: {{ #pos: {{{types}}} | Token }} | token }}|medium=vg}}<!--
 
-->{{Card info links|{{ #var: $main | {{Normalized pagename|{{PAGENAME}}}} }}|type={{ #if: {{ #pos: {{{types}}} | Token }} | token }}|medium=vg}}<!--

Revision as of 00:24, 28 December 2019

{{{article_messages}}}

  • [[Card Gallery:{{{main}}}|Gallery]]
  • [[Card Artworks:{{{main}}}|Artworks]]
  • [[Card Tips:{{{main}}}|Tips]]
  • [[Card Trivia:{{{main}}}|Trivia]]
  • [[Card Appearances:{{{main}}}|Appearances]]
  • [[Card Names:{{{main}}}|Names]]
  • [[Card Lores:{{{main}}}|Lores]]

Releases

{{{releases}}}

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}}}
Russian {{{ru_name}}} {{{ru_pendulum_effect}}}

{{{ru_material}}}

{{{ru_lore}}}
{{{ru_romanized_name}}}
Japanese {{{ja_name}}} {{{ja_pendulum_effect}}}

{{{ja_material}}}

{{{ja_lore}}}
{{{romaji_name}}}
Japanese translated {{{trans_name}}} {{{ja_trans_pendulum_effect}}}

{{{ja_material}}}

{{{ja_trans_lore}}}
Korean {{{ko_name}}} {{{ko_pendulum_effect}}}

{{{ko_material}}}

{{{ko_lore}}}
{{{ko_rr_name}}}
Chinese (Traditional) {{{zh_hant_name}}} {{{zh_hant_pendulum_effect}}}

{{{zh_hant_material}}}

{{{zh_hant_lore}}}
{{{zh_hant_romanized_name}}}
Chinese (Simplified) {{{zh_hans_name}}} {{{zh_hans_pendulum_effect}}}

{{{zh_hans_material}}}

{{{zh_hans_lore}}}
{{{zh_hans_romanized_name}}}

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}}}]]