Difference between revisions of "Template:ItemRarity/doc"
From Project: Gorgon Wiki
m |
m |
||
Line 11: | Line 11: | ||
== Syntax == | == Syntax == | ||
− | <pre>{{ItemRarity|rarity}}</pre> | + | *Single parameter for use on standard "parchment color" background: <pre>{{ItemRarity|rarity}}</pre> |
+ | *Two parameters for use in wikitables, [[:Template:ITEM_infobox|ITEM infoboxes]], or other light/dark backgrounds: <pre>{{ItemRarity|rarity|backgroundShade}}</pre> | ||
+ | |||
===Parameters=== | ===Parameters=== |
Revision as of 08:57, 5 December 2020
Contents
Description
Outputs a link, formatted into the color of the given rarity, to the page section that describes the rarity tiers of items (Items#Item Tiers).
Syntax
- Single parameter for use on standard "parchment color" background:
{{ItemRarity|rarity}}
- Two parameters for use in wikitables, ITEM infoboxes, or other light/dark backgrounds:
{{ItemRarity|rarity|backgroundShade}}
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
Code | Result |
---|---|
{{ItemRarity|epic}} |
Epic |
{{ItemRarity|2}} |
Rare |
{{ItemRarity|x}} |
Exceptional |