Template:Scryfall stats

From Magic: The Gathering Wiki
Jump to navigation Jump to search

This template is meant to make the statistical breakdown by color identity easier and more consistent across the wiki.

The template calculates the total and the percentage breakdown based on a Scryfall search query.

Works in tandem with {{Scryfall count}}.

Parameter

  • {{{1}}} the search query, e.g. type:"Angel". To include card numbers use expressions like cn≥1, cn≤286 or cn:42.
  • {{{label}}} (optional) if something other than card(s) should be displayed.
  • {{{pre}}} (optional) if something should appear before card(s).
  • {{{post}}} (optional) if something should appear after card(s).
  • {{{state}}} (optional) can be set to "collapsed" to start in a collapsed state.

Examples

Simple
Code: {{Scryfall stats|type:"Angel"}}
Result:
276 cards
Colorless mana 1.8% White mana 70.3% Blue mana 0.4% Black mana 3.3% Red mana 1.1% Multicolored 23.2%
Collapsed
Code: {{Scryfall stats|keyword:"Flying"|state=collapsed}}
Result:
3083 cards
Colorless mana 3.6% White mana 23% Blue mana 26.4% Black mana 16.3% Red mana 8% Green mana 1.5% Multicolored 21.2%
Complex query
Code: {{Scryfall stats|type:"Town" -type:"Townsfolk"}}
Result:
23 cards
Colorless mana 30.4% White mana 4.3% Blue mana 4.3% Black mana 4.3% Red mana 4.3% Green mana 4.3% Multicolored 47.8%
Complex query with pre-info
Code: {{Scryfall stats|banned:"Legacy"|pre=banned}}
Result:
168 banned cards
Colorless mana 25% White mana 9.5% Blue mana 16.7% Black mana 17.9% Red mana 8.9% Green mana 13.1% Multicolored 8.9%
Complex query with post info
Code: {{Scryfall stats|fo:/\bAngels?\b/|post=with Angel in textbox}}
Result:
88 cards with Angel in textbox
Colorless mana 6.8% White mana 63.6% Blue mana 2.3% Black mana 5.7% Multicolored 21.6%