Difference between revisions of "Template:Card probabilities"

From Yugipedia
Jump to: navigation, search
("th" should have been "td". Trying again.)
(adjust logic, re-order columns and add Level column for DM3/DDS)
Line 9: Line 9:
 
   |#default      = Deck contains
 
   |#default      = Deck contains
 
   }} }}<!--
 
   }} }}<!--
 +
 +
-->{{ #switch: {{{game}}}
 +
| Yu-Gi-Oh! Duel Monsters II: Dark Duel Stories = {{ #var: $has_summon_col | 1 }}
 +
| Yu-Gi-Oh! Dark Duel Stories                  = {{ #var: $has_summon_col | 1 }}{{ #var: $has_level_col | 1 }}
 +
}}<!--
 +
 
-->{{ #vardefine: $i | 0 }}<!--
 
-->{{ #vardefine: $i | 0 }}<!--
  
Line 18: Line 24:
 
     <th scope="col"><abbr title="Number">#</abbr></th>
 
     <th scope="col"><abbr title="Number">#</abbr></th>
 
     <th scope="col">Card</th>
 
     <th scope="col">Card</th>
     <th scope="col">Card type</th>
+
     <th scope="col">Card type</th>{{ #if: {{ #var: $has_summon_col }} |
    <th scope="col">Type</th>
 
    <th scope="col">ATK</th>
 
    <th scope="col">DEF</th>{{ #switch: {{{game}}}
 
| Yu-Gi-Oh! Duel Monsters II: Dark Duel Stories
 
| Yu-Gi-Oh! Dark Duel Stories =
 
 
     <th scope="col">Summon</th>
 
     <th scope="col">Summon</th>
 
}}
 
}}
 +
    <th scope="col">Type</th>{{ #if: {{ #var: $has_level_col }} |
 +
    <th scope="col">Level</th>
 +
}}
 +
    <th scope="col">ATK</th>
 +
    <th scope="col">DEF</th>
 
{{ #if: {{ #var: $is_victory_bonus }}
 
{{ #if: {{ #var: $is_victory_bonus }}
 
|
 
|
Line 56: Line 62:
 
     <td>{{ #show: {{ #var: $card-strip }} |?Card number }}</td>
 
     <td>{{ #show: {{ #var: $card-strip }} |?Card number }}</td>
 
     <td>[[{{ #var: $card-strip }}|{{ #var: $card_name | {{ #explode: {{ #var: $card }} | ( }} }}]]</td>
 
     <td>[[{{ #var: $card-strip }}|{{ #var: $card_name | {{ #explode: {{ #var: $card }} | ( }} }}]]</td>
     <td>{{ #show: {{ #var: $card-strip }} |?Card type (short) }}</td>
+
     <td>{{ #show: {{ #var: $card-strip }} |?Card type (short) }}</td>{{ #if: {{ #var: $has_summon_col }} |
     <td>{{ #show: {{ #var: $card-strip }} |?Type }}</td>
+
    <td>{{ #show: {{ #var: $card-strip }} |?Alignment (local) }}</td>
 +
}}
 +
     <td>{{ #show: {{ #var: $card-strip }} |?Type }}</td>{{ #if: {{ #var: $has_level_col }} |
 +
    <td>{{ #show: {{ #var: $card-strip }} |?Level# }}</td>
 +
}}
 
     <td>{{ #show: {{ #var: $card-strip }} |?ATK string }}</td>
 
     <td>{{ #show: {{ #var: $card-strip }} |?ATK string }}</td>
     <td>{{ #show: {{ #var: $card-strip }} |?DEF string }}</td>{{ #switch: {{{game}}}
+
     <td>{{ #show: {{ #var: $card-strip }} |?DEF string }}</td>
  | Yu-Gi-Oh! Duel Monsters II: Dark Duel Stories
 
  | Yu-Gi-Oh! Dark Duel Stories =
 
    <td>{{ #show: {{ #var: $card-strip }} |?Alignment (local) }}</td>
 
  }}
 
 
   {{ #if: {{ #var: $is_victory_bonus }}
 
   {{ #if: {{ #var: $is_victory_bonus }}
 
   |
 
   |

Revision as of 23:56, 11 December 2018

# Card Card type Type ATK DEF % 2048th