Difference between revisions of "Template:Card rarity counts"

From mtgpq wiki
Jump to: navigation, search
(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...")
 
 
Line 6: Line 6:
 
The parameters are:
 
The parameters are:
 
* <code>set</code>: (Optional) The three-letter abbreviation of a card set associated with these card counts.
 
* <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>total</code>: (Optional) The total number of cards
 
* <code>mp</code>: The number of Masterpiece cards
 
* <code>mp</code>: The number of Masterpiece cards
 
* <code>m</code>: The number of Mythic cards
 
* <code>m</code>: The number of Mythic cards
Line 28: Line 28:
  
 
{{Card rarity counts
 
{{Card rarity counts
|total = 23
 
 
|mp = 3
 
|mp = 3
 
|m = 8
 
|m = 8
Line 48: Line 47:
  
 
{{Card rarity counts
 
{{Card rarity counts
|total = 23
 
 
|mp = 3
 
|mp = 3
 
|m = 8
 
|m = 8
Line 54: Line 52:
 
}}
 
}}
  
</noinclude><includeonly>'''Cards: '''<!--
+
</noinclude><includeonly><!--
-->{{#if: {{{set|}}}|[https://mtgpq.info/cards/search?sets={{{set}}} {{{total}}}]|{{{total}}}}}&nbsp; (<small><!--
+
-->{{#if: {{{total|}}}|'''Cards: '''<!--
 +
-->{{#if: {{{set|}}}|[https://mtgpq.info/cards/search?sets={{{set}}} {{{total}}}]|{{{total}}}}}&nbsp; (<small>}}<!--
 
-->{{#if: {{{c|}}}|{{Rarity|C}}<!--
 
-->{{#if: {{{c|}}}|{{Rarity|C}}<!--
 
-->{{#if: {{{set|}}}|[https://mtgpq.info/cards/search?rarities=5&sets={{{set}}} {{{c}}}]|{{{c}}} }}<!--
 
-->{{#if: {{{set|}}}|[https://mtgpq.info/cards/search?rarities=5&sets={{{set}}} {{{c}}}]|{{{c}}} }}<!--
Line 68: Line 67:
 
-->{{#if: {{{mp|}}}|&nbsp;'''·'''&nbsp;{{Rarity|MP}}<!--
 
-->{{#if: {{{mp|}}}|&nbsp;'''·'''&nbsp;{{Rarity|MP}}<!--
 
-->{{#if: {{{set|}}}|[https://mtgpq.info/cards/search?rarities=1&sets={{{set}}} {{{mp}}}]|{{{mp}}} }} }}<!--
 
-->{{#if: {{{set|}}}|[https://mtgpq.info/cards/search?rarities=1&sets={{{set}}} {{{mp}}}]|{{{mp}}} }} }}<!--
--></small>)</includeonly>
+
-->{{#if: {{{total|}}}|</small>)}}</includeonly>

Latest revision as of 10:50, 24 February 2019


Usage

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

The parameters are:

  • set: (Optional) The three-letter abbreviation of a card set associated with these card counts.
  • total: (Optional) The total number of cards
  • mp: The number of Masterpiece cards
  • m: The number of Mythic cards
  • r: The number of Rare cards
  • u: The number of Uncommon cards
  • c: The number of Common cards

Example

This shorthand:

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

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

Produces:

Cards: 211  (Common60 · Uncommon64 · Rare48 · Mythic29 · Masterpiece10)

Rare12 · Mythic· Masterpiece3