Template:Stats: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Yandere-sliver
mNo edit summary
>Yandere-sliver
mNo edit summary
Line 1: Line 1:
<includeonly><br class="nomobile" style="display:block; margin: 0; line-height:0; padding:0"/><div class="mw-collapsible {{#ifeq:{{{state|}}}|collapsed|mw-collapsed|}}"><!--
<includeonly><div class="mw-collapsible {{#ifeq:{{{state|}}}|collapsed|mw-collapsed|}}"><!--
-->{{#vardefine:total|{{#expr:{{{C|0}}}+{{{W|0}}}+{{{U|0}}}+{{{B|0}}}+{{{R|0}}}+{{{G|0}}}+{{{WU|0}}}+{{{UB|0}}}+{{{BR|0}}}+{{{RG|0}}}+{{{GW|0}}}+{{{WB|0}}}+{{{UR|0}}}+{{{BG|0}}}+{{{RW|0}}}+{{{GU|0}}}+{{{A|0}}}+{{{L|0}}}+{{{M|0}}}}}}}<!--
-->{{#vardefine:total|{{#expr:{{{C|0}}}+{{{W|0}}}+{{{U|0}}}+{{{B|0}}}+{{{R|0}}}+{{{G|0}}}+{{{WU|0}}}+{{{UB|0}}}+{{{BR|0}}}+{{{RG|0}}}+{{{GW|0}}}+{{{WB|0}}}+{{{UR|0}}}+{{{BG|0}}}+{{{RW|0}}}+{{{GU|0}}}+{{{A|0}}}+{{{L|0}}}+{{{M|0}}}}}}}<!--
-->{{#vardefine:round|1}}<!--
-->{{#vardefine:round|1}}<!--

Revision as of 14:41, 27 June 2021

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).
    • If set to split the number of whole cards will be calculated as well.
    • If set to meld or "partner with" the number of pais 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
  • {{{A}}} Colorless artifacts
  • {{{L}}} Lands

Usage

Code: {{stats|C=1|W=2|U=3|B=4|R=5|G=6|M=7|A=8|L=9}}

Result:

45 cards
{C} 2.2% {W} 4.4% {U} 6.7% {B} 8.9% {R} 11.1% {G} 13.3% {M} 15.6% {artifact symbol} 17.8% {land symbol} 20%