Difference between revisions of "Template:Rarity"

From mtgpq wiki
Jump to: navigation, search
(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...")
 
 
(4 intermediate revisions by the same user not shown)
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>
+
 
 +
[[Category:Symbol templates]]
 +
 
 +
</noinclude><includeonly>{{Inline|[[File:rarity-{{{1}}}.png|{{#if:{{{2|}}}|x{{{2}}}px|x16px}}|link=Card pack#Rarities|{{Rarity expand|{{{1}}}}}]]}}</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