Difference between revisions of "Template:DM4 card"

From Yugipedia
Jump to: navigation, search
m (Something about this long label just doesn't sit well with me.)
(allow for inheriting lore from DM3)
Line 39: Line 39:
 
| divine        | devine  = {{ #vardefine: $alignment | Divine        }}{{ #vardefine: $alignment_name | Divine        }}
 
| divine        | devine  = {{ #vardefine: $alignment | Divine        }}{{ #vardefine: $alignment_name | Divine        }}
 
| #default                  = <noinclude>{{ #vardefine: $alignment | {{{alignment}}}  }}{{ #vardefine: $alignment_name | {{{alignment}}} }}</noinclude>
 
| #default                  = <noinclude>{{ #vardefine: $alignment | {{{alignment}}}  }}{{ #vardefine: $alignment_name | {{{alignment}}} }}</noinclude>
 +
}}<!--
 +
 +
  ## Allow lores to be inherited from DM3 (DDS)
 +
 +
-->{{ #vardefine: $lore
 +
  | {{ #ifeq: {{{lore}}} | DM3
 +
  | {{ #replace: {{ #show: {{ #var: $pagename }} (DDS) |?Translated Japanese lore }} | (DDS) | (DM4) }}
 +
  | {{{lore<includeonly>|</includeonly>}}}
 +
  }}
 +
}}<!--
 +
-->{{ #vardefine: $ja_lore
 +
| {{ #switch: {{{ja_lore|¬}}}
 +
  <!-- if ja_lore  = DM3, use the DM3 Japanese lore -->
 +
  | DM3 = {{ #show: {{ #var: $pagename }} (DDS) | ?Japanese lore }}
 +
  <!-- if ja_lore is unused and lore = DM3, use the DM3 Japanese lore -->
 +
  | ¬  = {{ #ifeq: {{{lore}}} | DM3 | {{ #show: {{ #var: $pagename }} (DDS) | ?Japanese lore }} }}
 +
  <!-- if ja_lore is used, use its value -->
 +
  | {{{ja_lore<includeonly>|</includeonly>}}}
 +
  }}
 
}}<!--
 
}}<!--
  
Line 74: Line 93:
 
   -->[[Type::{{ #var: $type }}| ]]<!--
 
   -->[[Type::{{ #var: $type }}| ]]<!--
 
   -->[[Password::{{{password|}}}| ]]<!--
 
   -->[[Password::{{{password|}}}| ]]<!--
   -->{{ #set: Lore = {{{lore|}}} }}<!--
+
   -->{{ #set: Lore = {{ #var: $lore }} }}<!--
   -->{{ #set: Japanese lore = {{{ja_lore|}}} }}<!--
+
   -->{{ #set: Japanese lore = {{ #var: $ja_lore}} }}<!--
 
   -->{{ #if: {{{number|}}} | [[Card number::{{ #var: $number }}| ]] }}<!--
 
   -->{{ #if: {{{number|}}} | [[Card number::{{ #var: $number }}| ]] }}<!--
 
   -->[[Deck Cost::{{ #var: $deck_cost }}| ]]<!--
 
   -->[[Deck Cost::{{ #var: $deck_cost }}| ]]<!--
Line 133: Line 152:
 
   }}
 
   }}
  
| data10    = {{ #if: {{{lore<includeonly>|</includeonly>}}} |
+
| data10    = {{ #if: {{ #var: $lore }} |
 
<div class="lore">
 
<div class="lore">
<p>{{{lore}}}</p>
+
<p>{{ #var: $lore }}</p>
 
</div>
 
</div>
   }}{{ #if: {{{ja_lore<includeonly>|</includeonly>}}} |
+
   }}{{ #if: {{ #var: $ja_lore }} |
 
<div class="lore main_lore" lang="ja">
 
<div class="lore main_lore" lang="ja">
<p>{{{ja_lore}}}</p>
+
<p>{{ #var: $ja_lore }}</p>
 
</div>
 
</div>
 
   }}
 
   }}

Revision as of 22:46, 26 March 2019

DM4 card
Japanese
{{{ja_name}}}
Rōmaji
{{{romaji_name}}}
Translated
{{{trans_name}}}
Back-EN.png
Deck Cost {{{deck_cost}}}
ATK / DEF {{{atk}}} / {{{def}}}
Type [[{{{types}}}]]
Alignment [[{{{alignment}}} (Alignment)|{{{alignment}}}]]
Password {{{password}}}
Playable in {{{playable_in}}} Deck

{{{lore}}}

  • [[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]]