Editing Template:Card probabilities

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page is not enabled for semantic in-text annotations due to namespace restrictions. Details about how to enable the namespace can be found on the configuration help page.

Latest revision Your text
Line 1: Line 1:
 
<!--
 
<!--
 
-->{{ #arraydefine: $cards | {{{cards|}}} | /\n/ }}<!--
 
-->{{ #arraydefine: $cards | {{{cards|}}} | /\n/ }}<!--
-->{{ #vardefine: $character       | {{ #if: {{{character|}}} | {{{character}}} | {{PAGENAME}} }} }}<!--
+
-->{{ #vardefine: $character   | {{ #if: {{{character|}}} | {{{character}}} | {{PAGENAME}} }} }}<!--
-->{{ #vardefine: $is_victory_bonus | {{ #switch: {{ lc: {{{type}}} }} | victory bonus = 1 }} }}<!--
+
-->{{ #vardefine: $is_milestone | {{ #ifeq: {{ lc: {{{type}}} }} | milestones | 1 }} }}<!--
-->{{ #vardefine: $property         | {{ #switch: {{ lc: {{{type}}} }}
+
-->{{ #vardefine: $property     | {{ #switch: {{ lc: {{{type}}} }}
   | drops         = Drops
+
   | drops     = Drops
   | victory bonus = Victory bonus
+
   | milestones = Drops
  | fixed set    = Set contains
+
   |#default   = Deck contains
   |#default       = Deck contains
 
 
   }} }}<!--
 
   }} }}<!--
-->{{ #ifeq: {{ lc: {{{type}}} }} | fixed set | {{ #vardefine: $use_fixed_quantities | 1 }} }}<!--
 
 
-->{{ #vardefine: ${{ #var: $property }}-counter
 
| {{ #expr: {{ #var: ${{ #var: $property }}-counter | 0 }} + 1 }}
 
}}<!--
 
 
-->{{ #vardefine: $main_subobject
 
| {{ #var: $property }}{{ #ifeq: {{ #var: ${{ #var: $property }}-counter }} | 0 || -{{ #var: ${{ #var: $property }}-counter }} }}
 
}}<!--
 
 
-->{{ #vardefine: $cp-en_name | {{ #if: {{{character_name|}}} | {{{character_name|}}} | {{ #explode: {{ #var: $character }} | ( }} }} }}<!--
 
 
# Per-game properties
 
-->{{ #switch: {{{game}}}
 
| DM2 | Yu-Gi-Oh! Duel Monsters II: Dark Duel Stories = <!--
 
  -->{{ #vardefine: $has_alignment_col | 1 }}
 
 
| DM3 | DDS | Yu-Gi-Oh! Dark Duel Stories
 
| DM4      | Yu-Gi-Oh! Duel Monsters 4: Battle of Great Duelist
 
| DM6      = <!--
 
  -->{{ #vardefine: $has_alignment_col | 1 }}<!--
 
  -->{{ #vardefine: $has_level_col    | 1 }}<!--
 
  -->{{ #ifeq: {{ #var: $property }} | Deck contains
 
    | {{ #vardefine: $use_fixed_quantities | 1 }}
 
    }}
 
 
| SDD      = <!--
 
  -->{{ #vardefine: $has_attribute_col | 1 }}<!--
 
  -->{{ #vardefine: $has_level_col    | 1 }}<!--
 
  -->{{ #ifeq: {{ #var: $property }} | Deck contains
 
    | {{ #vardefine: $use_fixed_quantities | 1 }}
 
    }}
 
 
| DM7 | TSC | Yu-Gi-Oh! The Sacred Cards
 
| DM8 | ROD | Yu-Gi-Oh! Reshef of Destruction = <!--
 
  -->{{ #vardefine: $has_summon_col    | 1 }}<!--
 
  -->{{ #vardefine: $has_level_col    | 1 }}<!--
 
  -->{{ #ifeq: {{ #var: $property }} | Deck contains
 
    | {{ #vardefine: $use_fixed_quantities | 1 }}
 
    }}
 
 
| FMR | Yu-Gi-Oh! Forbidden Memories
 
| DOR | Yu-Gi-Oh! The Duelists of the Roses = <!--
 
  -->{{ #vardefine: $has_dc_col        | 1 }}<!--
 
  -->{{ #vardefine: $has_attribute_col | 1 }}<!--
 
  -->{{ #vardefine: $has_level_col    | 1 }}
 
}}<!--
 
 
 
-->{{ #vardefine: $i | 0 }}<!--
 
-->{{ #vardefine: $i | 0 }}<!--
  
Line 65: Line 16:
 
   <tr>
 
   <tr>
 
     <th scope="col"><abbr title="Number">#</abbr></th>
 
     <th scope="col"><abbr title="Number">#</abbr></th>
     <th scope="col">Card</th>{{ #if: {{ #var: $has_dc_col }} |
+
     <th scope="col">Card</th>
    <th scope="col">DC</th>
+
     <th scope="col">Card type</th>
}}
+
     <th scope="col">Type</th>
     <th scope="col">Card type</th>{{ #if: {{ #var: $has_alignment_col }} |
 
    <th scope="col">Alignment</th>
 
}}{{ #if: {{ #var: $has_summon_col }} |
 
    <th scope="col">Summon</th>
 
}}{{ #if: {{ #var: $has_attribute_col }} |
 
    <th scope="col">Attribute</th>
 
}}
 
     <th scope="col">Type</th>{{ #if: {{ #var: $has_level_col }} |
 
    <th scope="col">Level</th>
 
}}
 
 
     <th scope="col">ATK</th>
 
     <th scope="col">ATK</th>
 
     <th scope="col">DEF</th>
 
     <th scope="col">DEF</th>
{{ #if: {{ #var: $is_victory_bonus }}
+
{{ #if: {{ #var: $is_milestone }}
 +
|
 +
    <th scope="col">Milestone</th>
 
|
 
|
    <th scope="col">Wins</th>
 
| {{ #if: {{ #var: $use_fixed_quantities }}
 
  |
 
    <th scope="col"><abbr title="Quantity">Qty</abbr></th>
 
  |
 
 
     <th scope="col"><abbr title="Chance out of 100">%</abbr></th>
 
     <th scope="col"><abbr title="Chance out of 100">%</abbr></th>
 
     <th scope="col"><abbr title="Chance out of 2048">2048th</abbr></th>
 
     <th scope="col"><abbr title="Chance out of 2048">2048th</abbr></th>
  }}
 
 
}}
 
}}
 
   </tr>
 
   </tr>
{{ #subobject: {{ #var: $main_subobject }}
+
{{ #arrayprint: $cards
| English name          = {{ #var: $cp-en_name }}
 
| English name (linked) = [[{{ #var: $character }}|{{ #var: $cp-en_name }}]]
 
| Internal number      = {{{internal_number|}}}|+sep=,
 
}}<!--
 
 
 
-->{{ #arrayprint: $cards
 
 
|&#32;
 
|&#32;
 
| $row
 
| $row
 
| <!--
 
| <!--
   -->{{ #vardefine: $i                | {{ padleft: {{ #expr: {{ #var: $i }} + 1 }} | 4 | 0 }} }}<!--
+
   -->{{ #vardefine: $i                | {{ #expr: {{ #var: $i }} + 1 }} }}<!--
 
   -->{{ #vardefine: $card            | {{ #explode: $row | ; }} }}<!--
 
   -->{{ #vardefine: $card            | {{ #explode: $row | ; }} }}<!--
 
   -->{{ #vardefine: $card-strip      | {{ #replace: {{ #var: $card }} | # }} }}<!--
 
   -->{{ #vardefine: $card-strip      | {{ #replace: {{ #var: $card }} | # }} }}<!--
 
   -->{{ #vardefine: $card_name        | {{ #show: {{ #var: $card-strip }} |?English name }} }}<!--
 
   -->{{ #vardefine: $card_name        | {{ #show: {{ #var: $card-strip }} |?English name }} }}<!--
   -->{{ #vardefine: $artwork          | {{ #explode: $row | artwork:: | 1 }} }}<!--
+
   -->{{ #vardefine: $milestone        | {{ #if: {{ #var: $is_milestone }} | {{ #explode: $row | ; | 1 }} }} }}<!--
 
+
  -->{{ #vardefine: $2048_probability | {{ #if: {{ #var: $is_milestone }} || {{ #explode: $row | ; | 1 }} }} }}<!--
  -->{{ #if: {{ #var: $is_victory_bonus }}
+
  -->{{ #vardefine: $probability      | {{ #if: {{ #var: $2048_probability }} | {{ #expr: 0{{ #var: $2048_probability }} / 2048 * 100 round 2 }} }} }}<!--
  | {{ #vardefine: $wins_required| {{ #explode: $row | ; | 1 }} }}
+
   -->{{ #subobject: {{ #if: {{ #var: $is_milestone }} | Milestone drops | {{ #var: $property }} }}-{{ #pad: {{ #var: $i }} | 4 | 0 | left }}
  | {{ #if: {{ #var: $use_fixed_quantities }}
+
   | {{ #var: $property }} = {{ #var: $card }}
    | {{ #vardefine: $quantity | {{ #explode: $row ; 1 | ; | 1 }} }}
 
    | <!--
 
      -->{{ #vardefine: $2048_probability | {{ #explode: {{ #explode: $row | ; | 1 }} | // | 0 }} }}<!--
 
      -->{{ #vardefine: $probability      | {{ #if: {{ #var: $2048_probability }} | {{ #expr: {{ #var: $2048_probability }} / 2048 * 100 round 2 }} }} }}
 
    }}
 
  }}<!--
 
 
 
   -->{{ #subobject: {{ #var: $main_subobject }}-{{ #var: $i }}
 
   | {{ #var: $property }} = {{ #var: $card-strip }}
 
 
   | Owner                = {{ #var: $character }}
 
   | Owner                = {{ #var: $character }}
   | Owner name            = {{ #var: $cp-en_name }}
+
   | Owner name            = {{ #if: {{{character_name|}}} | {{{character_name|}}} | {{ #explode: {{ #var: $character }} | ( }} }}
 
   | Probability          = {{ #var: $probability }}
 
   | Probability          = {{ #var: $probability }}
 
   | 2048th probability    = {{ #var: $2048_probability }}
 
   | 2048th probability    = {{ #var: $2048_probability }}
   | Wins required        = {{ #var: $wins_required }}
+
   | Milestone number      = {{ #var: $milestone }}
  | Amount                = {{ #var: $quantity }}
 
  | Subobject of          = {{PAGENAME}}#{{ #var: $main_subobject }}
 
 
   }}
 
   }}
 
   <tr>
 
   <tr>
     <td>{{ #if: {{ #var: $artwork }}
+
     <td>{{ #show: {{ #var: $card-strip }} |?Card number }}</td>
      | {{ #show: {{ #var: $card-strip }}#artwork_{{ #var: $artwork }} |?Card number }}
+
     <td>[[{{ #var: $card-strip }}|{{ #var: $card_name | {{ #explode: {{ #var: $card }} | ( }} }}]]</td>
      | {{ #show: {{ #var: $card-strip }} |?Card number }}
+
     <td>{{ #show: {{ #var: $card-strip }} |?Card type (short) }}</td>
      }}</td>
+
     <td>{{ #show: {{ #var: $card-strip }} |?Type }}</td>
     <td>"[[{{ #var: $card-strip }}|{{ #var: $card_name | {{ #explode: {{ #var: $card }} | ( }} }}]]"</td>{{ #if: {{ #var: $has_dc_col }} |
 
    <td>{{ #show: {{ #var: $card-strip }} |?Deck Cost }}</td>
 
}}
 
     <td>{{ #show: {{ #var: $card-strip }} |?Card type (short) }}</td>{{ #if: {{ #var: $has_alignment_col }}{{ #var: $has_summon_col }} |
 
    <td>{{ #show: {{ #var: $card-strip }} |?Alignment (local) }}</td>
 
}}{{ #if: {{ #var: $has_attribute_col }} |
 
    <td>{{ #show: {{ #var: $card-strip }} |?Attribute }}</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>
 
     <td>{{ #show: {{ #var: $card-strip }} |?DEF string }}</td>
   {{ #if: {{ #var: $is_victory_bonus }}
+
   {{ #if: {{ #var: $is_milestone }}
 +
  |
 +
    <td>{{ #var: $milestone }}</td>
 
   |
 
   |
    <td>{{ #var: $wins_required }}</td>
 
  | {{ #if: {{ #var: $use_fixed_quantities }}
 
    |
 
    <td>{{ #var: $quantity }}</td>
 
    |
 
 
     <td>{{ #var: $probability }}</td>
 
     <td>{{ #var: $probability }}</td>
 
     <td>{{ #var: $2048_probability }}</td>
 
     <td>{{ #var: $2048_probability }}</td>
    }}
 
 
   }}
 
   }}
 
   </tr>
 
   </tr>
 
}}
 
}}
</table><!--
+
</table>
 
 
# Reset variables before the next transclusion
 
-->{{ #vardefine: $cp-en_name          }}<!--
 
-->{{ #vardefine: $has_dc_col          }}<!--
 
-->{{ #vardefine: $has_alignment_col    }}<!--
 
-->{{ #vardefine: $has_summon_col      }}<!--
 
-->{{ #vardefine: $has_attribute_col    }}<!--
 
-->{{ #vardefine: $has_level_col        }}<!--
 
-->{{ #vardefine: $use_fixed_quantities }}
 

Please note that all contributions to Yugipedia are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International License (see Yugipedia:Licensing for more details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)
Preview page with this template
Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above.

View this template