DurrrBurger1 (talk | contribs) No edit summary |
DurrrBurger1 (talk | contribs) m (Reverted edits by DurrrBurger1 (talk) to last revision by Kittymmeow) Tag: Rollback |
||
Line 1: | Line 1: | ||
− | <includeonly><onlyinclude>{{#vardefine:rarity|{{lc:{{{1|}}} |
+ | <includeonly><onlyinclude>{{#vardefine:rarity|{{#switch: {{lc:{{{1|}}}}} |
|white |
|white |
||
− | |handmade |
+ | |handmade = Handmade |
− | |0 = 0 |
||
− | |||
|gray |
|gray |
||
− | |common |
+ | |common = Common |
− | |1 = 1 |
||
− | |||
|green |
|green |
||
− | |uncommon |
+ | |uncommon = Uncommon |
− | |2 = 2 |
||
− | |||
|blue |
|blue |
||
− | |rare |
+ | |rare = Rare |
− | |3 = 3 |
||
− | |||
|purple |
|purple |
||
− | |epic |
+ | |epic = Epic |
− | |4 = 4 |
||
− | |||
|orange |
|orange |
||
− | |legendary |
+ | |legendary = Legendary |
− | |5 = 5 |
||
− | |||
|gold |
|gold |
||
− | |mythic |
+ | |mythic = Mythic |
− | |6 = 6 |
||
− | |||
|red |
|red |
||
− | |transcendent |
+ | |transcendent = Transcendent |
− | |marvel |
+ | |marvel = Marvel |
⚫ | |||
− | |7 = 7 |
||
− | |||
− | |dc |
||
− | |dc series |
||
− | |100 = 100 |
||
− | |||
− | |star wars |
||
− | |star wars series |
||
− | |101 = 101 |
||
− | |||
− | |frozen |
||
− | |frozen series |
||
− | |102 = 102 |
||
− | |||
− | |lava |
||
− | |lava series |
||
− | |103 = 103 |
||
− | |||
− | |shadow |
||
− | |shadow series |
||
− | |104 = 104 |
||
− | |||
− | |dark |
||
− | |dark series |
||
− | |105 = 105 |
||
− | |||
− | |icon |
||
− | |icon series |
||
− | |106 = 106 |
||
− | |||
− | |slurp |
||
− | |slurp series |
||
− | |107 = 107 |
||
− | |||
⚫ | |||
}}}}</onlyinclude></includeonly> |
}}}}</onlyinclude></includeonly> |
||
<noinclude> |
<noinclude> |
Revision as of 10:12, 18 November 2020
Documentation[purge]
This template is used to parse accepted values for {{rarity}}
into standardized spelling and capitalization for use in other templates. These values may be retrieved by using {{#var:rarity}}
at any point on a page after where {{ParseRarity}}
was defined.
The most common use for this template is in {{infobox}}m
/{{infobox}}
to color-code infoboxes with their rarity colors. When creating a new infobox that requires color coding, simply include {{ParseRarity|{{{rarity|}}} }}
at the top of the new template.
Usage
Setting value
{{ParseRarity|<input>}}
Retrieving value
{{#var:rarity}}
Examples
Setting value
{{ParseRarity|purple}}
= (this template does not produce any output without retrieving the value as follows)
Retrieving value
{{#var:rarity}}
= Epic
Translation Information
This template is used to generate class selectors for color coding {{infobox}}m
in MediaWiki:Common.css. As a result, please do not translate the words after each =
, but you may translate the words before each =
to any common words that may be used for each rarity in the target language.
About
The above documentation is transcluded from Template:ParseRarity/doc. (edit | history)