Template:Stats: Difference between revisions
Jump to navigation
Jump to search
>Yandere-sliver No edit summary |
>Yandere-sliver No edit summary |
||
Line 23: | Line 23: | ||
-->{{#if:{{{GU|}}}|{{nowrap|{{G/U}} {{#expr:(100*{{{GU}}}/{{#var:total}}) round {{#var:round}}}}%}} }}<!-- | -->{{#if:{{{GU|}}}|{{nowrap|{{G/U}} {{#expr:(100*{{{GU}}}/{{#var:total}}) round {{#var:round}}}}%}} }}<!-- | ||
Multicolored | Multicolored | ||
-->{{#if:{{{M|}}}|<span class="explain" title="Multicolored"> | -->{{#if:{{{M|}}}|{{nowrap|<span class="explain" title="Multicolored">{{symbol|5Colors|type=png}}</span> {{#expr:(100*{{{M}}}/{{#var:total}}) round {{#var:round}}}}%}} }}<!-- | ||
Colorless artifact | Colorless artifact | ||
-->{{#if:{{{A|}}}|{{nowrap|{{type|artifact}} {{#expr:(100*{{{A}}}/{{#var:total}}) round {{#var:round}}}}%}} }}<!-- | -->{{#if:{{{A|}}}|{{nowrap|{{type|artifact}} {{#expr:(100*{{{A}}}/{{#var:total}}) round {{#var:round}}}}%}} }}<!-- |
Revision as of 16:04, 12 April 2019
This template is meant to make the statistical breakdown by color easier and more consistent across the wiki.
The template calculates the total and the percentage breakdown.
Parameter
{{{1}}}
(optional) If there should be a descriptor before the word "cards" (e.g. XX morph cards). Can be set to "split" in which case the number of whole cards will be calculated as well.{{{state}}}
(optional) Can be set to "collapsed" to start in a collapsed state.
Each of the following parameter requires the number of cards of that certain characteristic:
{{{C}}}
Colorless non-artifact non-land cards (e.g. Eldrazi)- Monocolored cards
- Hybrid or Twocolored cards
{{{WU}}}
White/Blue{{{UB}}}
Blue/Black{{{BR}}}
Black/Red{{{RG}}}
Red/Green{{{GW}}}
Green/White{{{WB}}}
White/Black{{{UR}}}
Blue/Red{{{BG}}}
Black/Green{{{RW}}}
Red/White{{{GU}}}
Green/Blue
{{{M}}}
Multicolored cards (icon has tooltip and link){{{A}}}
Colorless artifacts (icon has tooltip and link){{{L}}}
Lands (icon has tooltip and link)
Usage
Code: {{stats|C=1|W=2|U=3|B=4|R=5|G=6|M=7|A=8|L=9}}
Result:
45 cards 2.2% 4.4% 6.7% 8.9% 11.1% 13.3% {{{1}}} 17.8% 20%