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"
  • {{{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:
 301 cards
   Colorless mana 1.7% 
   White mana 66.1% 
   Blue mana 2% 
   Black mana 4.7% 
   Red mana 2.7% 
   Green mana 1.7% 
   Multicolored 21.3% 


Collapsed
Code: {{Scryfall stats|keyword:"Flying"|state=collapsed}}
Result:
 3607 cards
   Colorless mana 3% 
   White mana 22.6% 
   Blue mana 25.3% 
   Black mana 16.9% 
   Red mana 9.9% 
   Green mana 4.3% 
   Multicolored 18% 


Complex query
Code: {{Scryfall stats|type:"Town" -type:"Townsfolk"}}
Result:
 58 cards
   Colorless mana 12.1% 
   White mana 13.8% 
   Blue mana 13.8% 
   Black mana 13.8% 
   Red mana 13.8% 
   Green mana 13.8% 
   Multicolored 19% 


Complex query with post info
Code: {{Scryfall stats|fo:/\bAngels?\b/|post=with Angel in textbox}}
Result:
 118 cards
   Colorless mana 5.1% 
   White mana 52.5% 
   Blue mana 6.8% 
   Black mana 9.3% 
   Red mana 5.1% 
   Green mana 5.1% 
   Multicolored 16.1%