Difference between revisions of "Template:Card probabilities"

From Yugipedia
Jump to: navigation, search
m (fix)
(Adjust to work for sets with fixed contents e.g. Starter Decks. (Sets with randomised contents, such as Booster Packs, still unsupported.))
Line 6: Line 6:
 
   | drops        = Drops
 
   | drops        = Drops
 
   | victory bonus = Victory bonus
 
   | victory bonus = Victory bonus
 +
  | fixed set    = Set contains
 
   |#default      = Deck contains
 
   |#default      = Deck contains
 
   }} }}<!--
 
   }} }}<!--
Line 23: Line 24:
 
   -->{{ #vardefine: $has_level_col    | 1 }}<!--
 
   -->{{ #vardefine: $has_level_col    | 1 }}<!--
 
   -->{{ #ifeq: {{ #var: $property }} | Deck contains
 
   -->{{ #ifeq: {{ #var: $property }} | Deck contains
     | {{ #vardefine: $is_fixed_deck | 1 }}
+
     | {{ #vardefine: $use_fixed_quantities | 1 }}
 +
    }}{{ #ifeq: {{ lc: {{{type}}} }} | Fixed set
 +
    | {{ #vardefine: $use_fixed_quantities | 1 }}
 
     }}
 
     }}
 
}}<!--
 
}}<!--
Line 47: Line 50:
 
|
 
|
 
     <th scope="col">Wins</th>
 
     <th scope="col">Wins</th>
| {{ #if: {{ #var: $is_fixed_deck }}
+
| {{ #if: {{ #var: $use_fixed_quantities }}
 
   |
 
   |
 
     <th scope="col"><abbr title="Quantity">Qty</abbr></th>
 
     <th scope="col"><abbr title="Quantity">Qty</abbr></th>
Line 67: Line 70:
 
   -->{{ #if: {{ #var: $is_victory_bonus }}
 
   -->{{ #if: {{ #var: $is_victory_bonus }}
 
   | {{ #vardefine: $wins_required| {{ #explode: $row | ; | 1 }} }}
 
   | {{ #vardefine: $wins_required| {{ #explode: $row | ; | 1 }} }}
   | {{ #if: {{ #var: $is_fixed_deck }}
+
   | {{ #if: {{ #var: $use_fixed_quantities }}
 
     | {{ #vardefine: $quantity | {{ #explode: $row ; 1 | ; | 1 }} }}
 
     | {{ #vardefine: $quantity | {{ #explode: $row ; 1 | ; | 1 }} }}
 
     | <!--
 
     | <!--
Line 100: Line 103:
 
   |
 
   |
 
     <td>{{ #var: $wins_required }}</td>
 
     <td>{{ #var: $wins_required }}</td>
   | {{ #if: {{ #var: $is_fixed_deck }}
+
   | {{ #if: {{ #var: $use_fixed_quantities }}
 
     |
 
     |
 
     <td>{{ #var: $quantity }}</td>
 
     <td>{{ #var: $quantity }}</td>
Line 113: Line 116:
  
 
# Reset variables before the next transclusion
 
# Reset variables before the next transclusion
-->{{ #vardefine: $has_alignment_col | }}<!--
+
-->{{ #vardefine: $has_alignment_col   | }}<!--
-->{{ #vardefine: $has_level_col     | }}<!--
+
-->{{ #vardefine: $has_level_col       | }}<!--
-->{{ #vardefine: $is_fixed_deck    | }}<!--
+
-->{{ #vardefine: $use_fixed_quantities| }}<!--

Revision as of 14:40, 6 April 2019

# Card Card type Type ATK DEF % 2048th