(Changed colour of Legendary state) |
m (removing unnecessary whitespace) |
||
Line 5: | Line 5: | ||
|epic=<span style="color: #71ff05;">{{{Rarity}}}</span> |
|epic=<span style="color: #71ff05;">{{{Rarity}}}</span> |
||
|legendary=<span style="color: rgb(150, 200, 255);">{{{Rarity}}}</span> |
|legendary=<span style="color: rgb(150, 200, 255);">{{{Rarity}}}</span> |
||
− | |<span>{{{Rarity}}}</span>}} |
+ | |<span>{{{Rarity}}}</span>}}<noinclude> |
− | <noinclude> |
||
{{Documentation}} |
{{Documentation}} |
||
[[Category:Templates]] |
[[Category:Templates]] |
Revision as of 09:21, 9 February 2018
{{{Rarity}}}
Template documentation follows |
---|
Note: the template above may sometimes be partially or fully invisible. |
Visit Template:Rarity/doc to edit this documentation. (How does this work?) |
- Description
- This template colors rarity levels accordingly to the rarity colors in Noblemen: 1896. The colors themselves are directly picked from in-game images of Noblemen: 1896.
The following table lists the possible colors that this template can produce, as well as the color code and what rarity level is this color associated to:
Rarity Level | Code (you can copy and paste) | Color Name | HEX Code for Color | Color |
---|---|---|---|---|
Common | {{Rarity|rarity=common}}
|
White Smoke | #F3F3F3 | |
Uncommon | {{Rarity|rarity=uncommon}}
|
Mint Julep | #DFD69C | |
Rare | {{Rarity|rarity=rare}}
|
Japonica | #CB6B5E | |
Epic | {{Rarity|rarity=epic}}
|
Mantis | #7FC170 | |
Legendary | {{Rarity|rarity=legendary}}
|
Regent St Blue | #94CEDA |
- This template is mainly used to describe rarity levels for loot from crates and battle packs.
- Syntax
- The template accepts the following parameters:
rarity
- Only acceptscommon
,uncommon
,rare
,epic
andlegendary
. The value passed in can be in UPPERCASE, lowercase or MiXeD, so passing inUncOMMon
will still work.- If
rarity
is left blank, the template does nothing. If given a string that does not correspond to the rarity levels, the template just displays the string with no further formatting provided.
- Example Usage and Output
- Assuming we want to type in this string of text into an article:
"Legendary officers are much more rarer than epic officers."
- We can type the following into the source editor:
{{Rarity|rarity=Legendary}} officers are much more rarer than {{Rarity|rarity=epic}} officers.
- When previewed, it gives:
{{{Rarity}}} officers are much more rarer than {{{Rarity}}} officers.
- Known Issues
- The colour will not be displayed on the mobile webpage.