Difference between revisions of "Template:Rarity"
(Created page with "<noinclude> ==Usage== Produce a rarity icon. The parameter is one of C, U, R, M, or MP. ==Example== This mark-up: <pre><nowiki> {{Rarity|C}} {{Rarity|U}} {{Rarity|R}} {{Rar...") |
|||
Line 3: | Line 3: | ||
Produce a rarity icon. | Produce a rarity icon. | ||
− | The parameter is one of C, U, R, M, or MP. | + | * 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== | ==Example== | ||
Line 9: | Line 10: | ||
This mark-up: | This mark-up: | ||
<pre><nowiki> | <pre><nowiki> | ||
− | {{Rarity|C}} {{Rarity|U}} {{Rarity|R}} {{Rarity|M}} {{Rarity|MP}} | + | {{Rarity|C|12}} {{Rarity|U|16}} {{Rarity|R|20}} {{Rarity|M|24}} {{Rarity|MP}} |
</nowiki></pre> | </nowiki></pre> | ||
Produces: | Produces: | ||
− | {{Rarity|C}} {{Rarity|U}} {{Rarity|R}} {{Rarity|M}} {{Rarity|MP}} | + | {{Rarity|C|12}} {{Rarity|U|16}} {{Rarity|R|20}} {{Rarity|M|24}} {{Rarity|MP}} |
− | </noinclude><includeonly>[[File:rarity-{{{1}}}.png|x16px|{{{1}}}|link=Card pack#Rarities]]</includeonly> | + | </noinclude><includeonly>[[File:rarity-{{{1}}}.png|{{#if:{{{2|}}}|x{{{2}}}px|x16px}}|{{#ifeq:{{{1}}}|C|Common| |
+ | {{#ifeq:{{{1}}}|U|Uncommon| | ||
+ | {{#ifeq:{{{1}}}|R|Rare| | ||
+ | {{#ifeq:{{{1}}}|M|Mythic| | ||
+ | {{#ifeq:{{{1}}}|MP|Masterpiece}}}}}}}}}}|link=Card pack#Rarities]]</includeonly> |