Difference between revisions of "Template:Rarity"

From mtgpq wiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 16: Line 16:
  
 
{{Rarity|C|12}} {{Rarity|U|16}} {{Rarity|R|20}} {{Rarity|M|24}} {{Rarity|MP}}
 
{{Rarity|C|12}} {{Rarity|U|16}} {{Rarity|R|20}} {{Rarity|M|24}} {{Rarity|MP}}
</noinclude><includeonly>[[File:rarity-{{{1}}}.png|{{#if:{{{2|}}}|x{{{2}}}px|x16px}}|{{#ifeq:{{{1}}}|C|Common|
+
 
{{#ifeq:{{{1}}}|U|Uncommon|
+
[[Category:Symbol templates]]
{{#ifeq:{{{1}}}|R|Rare|
+
 
{{#ifeq:{{{1}}}|M|Mythic|
+
</noinclude><includeonly>{{Inline|[[File:rarity-{{{1}}}.png|{{#if:{{{2|}}}|x{{{2}}}px|x16px}}|link=Card pack#Rarities|{{Rarity expand|{{{1}}}}}]]}}</includeonly>
{{#ifeq:{{{1}}}|MP|Masterpiece}}}}}}}}}}|link=Card pack#Rarities]]</includeonly>
 

Latest revision as of 10:10, 19 April 2020

Usage

Produce a rarity icon.

  • The first parameter is one of C, U, R, M, or MP.
  • The second parameter (optional) is a number specifying the icon height. (Default: 16)

Example

This mark-up:

{{Rarity|C|12}} {{Rarity|U|16}} {{Rarity|R|20}} {{Rarity|M|24}} {{Rarity|MP}}

Produces:

Common Uncommon Rare Mythic Masterpiece