Difference between revisions of "Template:DM4 card"

From Yugipedia
Jump to: navigation, search
(allow for inheriting lore from DM3)
(Redoing the playability section. Need to consider that some cards are only playable post-game.)
Line 144: Line 144:
 
| data8    = {{{password<includeonly>|</includeonly>}}}
 
| data8    = {{{password<includeonly>|</includeonly>}}}
  
| label9    = Playable in
+
| data9    = {{ #if: {{ #var: $lore }} |
| data9    = {{ #arraymap: {{{playable_in<includeonly>|</includeonly>}}}
 
  | ,
 
  | $version
 
  | [[Playable in::Yu-Gi-Oh! Duel Monsters 4: Battle of Great Duelist: $version Deck| ]]$version Deck
 
  | ,&#32;
 
  }}
 
 
 
| data10    = {{ #if: {{ #var: $lore }} |
 
 
<div class="lore">
 
<div class="lore">
 
<p>{{ #var: $lore }}</p>
 
<p>{{ #var: $lore }}</p>
Line 161: Line 153:
 
</div>
 
</div>
 
   }}
 
   }}
 +
 +
| label10    = Playable in
 +
| data10    = <table class="wikitable" style="margin: 0; text-align: center;">
 +
    <tr>
 +
      <th scope="col">''Yugi Deck''</th>
 +
      <th scope="col">''Kaiba Deck''</th>
 +
      <th scope="col">''Joey Deck''</th>
 +
    </tr>
 +
    <tr>
 +
      {{ #switch: {{ lc: {{{playable_in_yugi}}} }}
 +
      | yes | true  = <td style="background: #9f9;">Yes</td>
 +
      | no  | false = <td style="background: #fcc;">No</td>
 +
      | post-game  = <td style="background: #acf;">Post-game</td>
 +
      | #default    = <td><noinclude>{{{playable_in_yugi}}}</noinclude><includeonly>???</includeonly></td>
 +
      }}
 +
      {{ #switch: {{ lc: {{{playable_in_kaiba}}} }}
 +
      | yes | true  = <td style="background: #9f9;">Yes</td>
 +
      | no  | false = <td style="background: #fcc;">No</td>
 +
      | post-game  = <td style="background: #acf;">Post-game</td>
 +
      | #default    = <td><noinclude>{{{playable_in_kaiba}}}</noinclude><includeonly>???</includeonly></td>
 +
      }}
 +
      {{ #switch: {{ lc: {{{playable_in_joey}}} }}
 +
      | yes | true  = <td style="background: #9f9;">Yes</td>
 +
      | no  | false = <td style="background: #fcc;">No</td>
 +
      | post-game  = <td style="background: #acf;">Post-game</td>
 +
      | #default    = <td><noinclude>{{{playable_in_joey}}}</noinclude><includeonly>???</includeonly></td>
 +
      }}
 +
    </tr>
 +
  </table>
  
 
| below      =  
 
| below      =  

Revision as of 09:35, 30 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}}}

{{{lore}}}

Playable in
Yugi Deck Kaiba Deck Joey Deck
{{{playable_in_yugi}}} {{{playable_in_kaiba}}} {{{playable_in_joey}}}
  • [[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]]