Difference between revisions of "Template:Card probabilities"

From Yugipedia
Jump to: navigation, search
m (Deltaneos moved page Template:Deck probabilities to Template:Card probabilities: Genericise to also allow it to be used for cards dropped by a player.)
(Allow to also be used for drops)
Line 2: Line 2:
 
-->[[Character::{{{character|}}}| ]]<!--
 
-->[[Character::{{{character|}}}| ]]<!--
 
-->[[Game::{{{game|}}}| ]]<!--
 
-->[[Game::{{{game|}}}| ]]<!--
 +
-->{{ #vardefine: $property | {{ #ifeq: {{ lc: {{{type}} }} | drops | Drops | Deck contains }} }}<!--
  
 
-->{{ #arraydefine: $cards | {{{cards|}}} | /\n/ }}<!--
 
-->{{ #arraydefine: $cards | {{{cards|}}} | /\n/ }}<!--
Line 13: Line 14:
 
     <th scope="col">ATK</th>
 
     <th scope="col">ATK</th>
 
     <th scope="col">DEF</th>
 
     <th scope="col">DEF</th>
     <th scope="col"><abbr title="Percentage chance of being included in the Deck">%</abbr></th>
+
     <th scope="col"><abbr title="Chance out of 100">%</abbr></th>
     <th scope="col"><abbr title="Chance out of 2048 of being included in the Deck">2048th</abbr></th>
+
     <th scope="col"><abbr title="Chance out of 2048">2048th</abbr></th>
 
   </tr>
 
   </tr>
 
{{ #arrayprint: $cards
 
{{ #arrayprint: $cards
Line 26: Line 27:
 
   -->{{ #vardefine: $probability      | {{ #if: {{ #var: $2048_probability }} | {{ #expr: 0{{ #var: $2048_probability }} / 2048 * 100 round 2 }} }} }}<!--
 
   -->{{ #vardefine: $probability      | {{ #if: {{ #var: $2048_probability }} | {{ #expr: 0{{ #var: $2048_probability }} / 2048 * 100 round 2 }} }} }}<!--
 
   -->{{ #subobject: Card-{{ #pad: {{ #var: $i }} | 4 | 0 | left }}
 
   -->{{ #subobject: Card-{{ #pad: {{ #var: $i }} | 4 | 0 | left }}
   | Deck contains      = {{ #var: $card }}
+
   | {{ #var: $property }} = {{ #var: $card }}
   | Owner             = {{{character|}}}
+
   | Owner                 = {{{character|}}}
   | Owner name         = {{ #if: {{{character_name|}}} | {{{character_name|}}} | {{ #explode: {{{character}}} | ( }} }}
+
   | Owner name           = {{ #if: {{{character_name|}}} | {{{character_name|}}} | {{ #explode: {{{character}}} | ( }} }}
   | Probability       = {{ #var: $probability }}
+
   | Probability           = {{ #var: $probability }}
   | 2048th probability = {{ #var: $2048_probability }}
+
   | 2048th probability   = {{ #var: $2048_probability }}
 
   }}
 
   }}
 
   <tr>
 
   <tr>

Revision as of 19:44, 8 July 2017

# Card Type ATK DEF % 2048th