DurrrBurger1 (talk | contribs) No edit summary |
DurrrBurger1 (talk | contribs) No edit summary |
||
Line 16: | Line 16: | ||
|red |
|red |
||
|transcendent = Transcendent |
|transcendent = Transcendent |
||
+ | |dark = Dark Series |
||
⚫ | |||
+ | |dc = DC Series |
||
+ | |frozen = Frozen Series |
||
+ | |icon = Icon Series |
||
+ | |lava = Lava Series |
||
+ | |shadow = Shadow Series |
||
|slurp = Slurp Series |
|slurp = Slurp Series |
||
⚫ | |||
+ | |star wars = Star Wars Series |
||
|#default=N/A |
|#default=N/A |
||
}}}}</onlyinclude></includeonly> |
}}}}</onlyinclude></includeonly> |
Revision as of 17:00, 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)