Changes

Jump to: navigation, search

Template:ItemRarity/doc

1,083 bytes added, 18:44, 27 November 2020
Created page with "<includeonly> <!-- Categories/interwikis for the template itself --> Category:Formatting templates </includeonly><noinclude> <!-- Categories/interwikis for this documentat..."
<includeonly>
<!-- Categories/interwikis for the template itself -->
[[Category:Formatting templates]]
</includeonly><noinclude>
<!-- Categories/interwikis for this documentation itself -->
[[Category:Template documentation|{{PAGENAME}}]]
</noinclude>

==Description<==
Outputs a link to the page section that describes the rarity tiers of items, formatted into the color of a given rarity.

== Syntax ==
<pre>{{ItemRarity|rarity}}</pre>

===Parameters===
*First and only parameter (required): The rarity you wish to express. This can be any of:
** The full word description of the rarity: Uncommon, Rare, Exceptional, Epic, Legendary (capitalized or not)
** The number of mods on an item of that rarity: 1, 2, 3, 4, 5
** A one letter abbreviation for that rarity: u, r, x, p, l (capitalized or not)
** Any other values default to "Common" in the color white.

== Examples ==
{| class="wikitable"
! Code
! Result
|-
| <pre>{{ItemRarity|epic}}</pre>
| {{ItemRarity|epic}}
|-
| <pre>{{ItemRarity|2}}</pre>
| {{ItemRarity|2}}
|-
| <pre>{{ItemRarity|x}}</pre>
| {{ItemRarity|x}}
|}
5,698
edits

Navigation menu