Open main menu

mtgpq wiki β

Changes

Template:Card rarity counts

1,885 bytes added, 06:31, 22 February 2019
Created page with "<noinclude> == Usage == Display a total number of cards, as well as the number of cards of each rarity. The parameters are: * <code>set</code>: (Optional) The three-letter a..."
<noinclude>

== Usage ==
Display a total number of cards, as well as the number of cards of each rarity.

The parameters are:
* <code>set</code>: (Optional) The three-letter abbreviation of a card set associated with these card counts.
* <code>total</code>: The total number of cards
* <code>mp</code>: The number of Masterpiece cards
* <code>m</code>: The number of Mythic cards
* <code>r</code>: The number of Rare cards
* <code>u</code>: The number of Uncommon cards
* <code>c</code>: The number of Common cards

== Example ==

This shorthand:
<pre><nowiki>
{{Card rarity counts
|set = DOM
|total = 211
|mp = 10
|m = 29
|r = 48
|u = 64
|c = 60
}}

{{Card rarity counts
|total = 23
|mp = 3
|m = 8
|r = 12
}}
</nowiki></pre>

Produces:

{{Card rarity counts
|set = DOM
|total = 211
|mp = 10
|m = 29
|r = 48
|u = 64
|c = 60
}}

{{Card rarity counts
|total = 23
|mp = 3
|m = 8
|r = 12
}}

</noinclude><includeonly>'''Cards: '''<!--
-->{{#if: {{{set|}}}|[https://mtgpq.info/cards/search?sets={{{set}}} {{{total}}}]|{{{total}}}}}&nbsp; (<small><!--
-->{{#if: {{{c|}}}|{{Rarity|C}}<!--
-->{{#if: {{{set|}}}|[https://mtgpq.info/cards/search?rarities=5&sets={{{set}}} {{{c}}}]|{{{c}}} }}<!--
-->&nbsp;'''·'''&nbsp;}}<!--
-->{{#if: {{{u|}}}|{{Rarity|U}}<!--
-->{{#if: {{{set|}}}|[https://mtgpq.info/cards/search?rarities=4&sets={{{set}}} {{{u}}}]|{{{u}}} }}<!--
-->&nbsp;'''·'''&nbsp;}}<!--
-->{{#if: {{{r|}}}|{{Rarity|R}}<!--
-->{{#if: {{{set|}}}|[https://mtgpq.info/cards/search?rarities=3&sets={{{set}}} {{{r}}}]|{{{r}}} }} }}<!--
-->{{#if: {{{m|}}}|&nbsp;'''·'''&nbsp;{{Rarity|M}}<!--
-->{{#if: {{{set|}}}|[https://mtgpq.info/cards/search?rarities=2&sets={{{set}}} {{{m}}}]|{{{m}}} }} }}<!--
-->{{#if: {{{mp|}}}|&nbsp;'''·'''&nbsp;{{Rarity|MP}}<!--
-->{{#if: {{{set|}}}|[https://mtgpq.info/cards/search?rarities=1&sets={{{set}}} {{{mp}}}]|{{{mp}}} }} }}<!--
--></small>)</includeonly>