Editing Template:Card probabilities
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 2: | Line 2: | ||
-->{{ #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_victory_bonus | {{ #switch: {{ lc: {{{type}}} }} | milestones | victory bonus = 1 }} }}<!-- |
-->{{ #vardefine: $property | {{ #switch: {{ lc: {{{type}}} }} | -->{{ #vardefine: $property | {{ #switch: {{ lc: {{{type}}} }} | ||
| drops = Drops | | drops = Drops | ||
+ | | milestones | ||
| victory bonus = Victory bonus | | victory bonus = Victory bonus | ||
− | |||
|#default = Deck contains | |#default = Deck contains | ||
}} }}<!-- | }} }}<!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
-->{{ #switch: {{{game}}} | -->{{ #switch: {{{game}}} | ||
− | + | | Yu-Gi-Oh! Duel Monsters II: Dark Duel Stories = {{ #vardefine: $has_summon_col | 1 }} | |
− | + | | Yu-Gi-Oh! Dark Duel Stories = {{ #vardefine: $has_summon_col | 1 }}{{ #vardefine: $has_level_col | 1 }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}<!-- | }}<!-- | ||
Line 65: | Line 23: | ||
<tr> | <tr> | ||
<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>{{ #if: {{ #var: $has_summon_col }} | | |
− | |||
− | <th scope="col">Card type</th> | ||
− | |||
− | |||
<th scope="col">Summon</th> | <th scope="col">Summon</th> | ||
− | |||
− | |||
}} | }} | ||
<th scope="col">Type</th>{{ #if: {{ #var: $has_level_col }} | | <th scope="col">Type</th>{{ #if: {{ #var: $has_level_col }} | | ||
Line 83: | Line 35: | ||
| | | | ||
<th scope="col">Wins</th> | <th scope="col">Wins</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> | ||
− | + | {{ #arrayprint: $cards | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|  | |  | ||
| $row | | $row | ||
Line 106: | Line 48: | ||
-->{{ #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: $ | + | -->{{ #vardefine: $wins_required | {{ #if: {{ #var: $is_victory_bonus }} | {{ #explode: $row | ; | 1 }} }} }}<!-- |
− | + | -->{{ #vardefine: $2048_probability | {{ #if: {{ #var: $is_victory_bonus }} || {{ #explode: $row | ; | 1 }} }} }}<!-- | |
− | + | -->{{ #vardefine: $probability | {{ #if: {{ #var: $2048_probability }} | {{ #expr: {{ #var: $2048_probability | 0 }} / 2048 * 100 round 2 }} }} }}<!-- | |
− | + | -->{{ #subobject: {{ #if: {{ #var: $is_victory_bonus }} | Victory bonus | {{ #var: $property }} }}-{{ #var: $i }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | -->{{ #subobject: {{ #var: $ | ||
| {{ #var: $property }} = {{ #var: $card-strip }} | | {{ #var: $property }} = {{ #var: $card-strip }} | ||
| Owner = {{ #var: $character }} | | Owner = {{ #var: $character }} | ||
− | | Owner name = {{ #var: $ | + | | 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 }} | | Wins required = {{ #var: $wins_required }} | ||
− | |||
− | |||
}} | }} | ||
<tr> | <tr> | ||
− | <td> | + | <td>{{ #show: {{ #var: $card-strip }} |?Card number }}</td> |
− | + | <td>[[{{ #var: $card-strip }}|{{ #var: $card_name | {{ #explode: {{ #var: $card }} | ( }} }}]]</td> | |
− | + | <td>{{ #show: {{ #var: $card-strip }} |?Card type (short) }}</td>{{ #if: {{ #var: $has_summon_col }} | | |
− | |||
− | <td> | ||
− | |||
− | |||
− | <td>{{ #show: {{ #var: $card-strip }} |?Card type (short) }}</td>{{ #if: | ||
<td>{{ #show: {{ #var: $card-strip }} |?Alignment (local) }}</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 }} |?Type }}</td>{{ #if: {{ #var: $has_level_col }} | | ||
Line 149: | Line 73: | ||
| | | | ||
<td>{{ #var: $wins_required }}</td> | <td>{{ #var: $wins_required }}</td> | ||
− | + | | | |
− | |||
− | |||
− | |||
<td>{{ #var: $probability }}</td> | <td>{{ #var: $probability }}</td> | ||
<td>{{ #var: $2048_probability }}</td> | <td>{{ #var: $2048_probability }}</td> | ||
− | |||
}} | }} | ||
</tr> | </tr> | ||
}} | }} | ||
− | </table> | + | </table> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |