Template:RarityColor: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
HiddenDragon (talk | contribs) mNo edit summary |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{color| | <includeonly>{{color| | ||
{{#switch:{{{1}}} | {{#switch: {{{1}}} | ||
| common = #FFFFFF | |||
| uncommon = #01BD39 | | uncommon = #01BD39 | ||
| rare = #01BFFF | | rare = #01BFFF | ||
| very rare | | very rare = #D1017B | ||
| legendary = #B7861D | | legendary = #B7861D | ||
| story = #FF5901 | | story = #FF5901 | ||
}}|{{{2}}}}}</includeonly><noinclude> | }} | {{{2}}} }}</includeonly><noinclude>{{Documentation|content= | ||
A template that wraps text in a rarity's colour. | |||
{{Template demo | |||
| style = table | |||
| <nowiki>{{RarityColor|common|Common Item}}</nowiki> | |||
| <nowiki>{{RarityColor|uncommon|Uncommon Item}}</nowiki> | |||
| <nowiki>{{RarityColor|rare|Rare Item}}</nowiki> | |||
| <nowiki>{{RarityColor|very rare|Very Rare Item}}</nowiki> | |||
| <nowiki>{{RarityColor|legendary|Legendary Item}}</nowiki> | |||
| <nowiki>{{RarityColor|story|Story Item}}</nowiki> | |||
}} | |||
}} | |||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 21:29, 19 January 2025
Template documentation
A template that wraps text in a rarity's colour.
Markup | Renders as |
---|---|
{{RarityColor|common|Common Item}} | Common Item |
{{RarityColor|uncommon|Uncommon Item}} | Uncommon Item |
{{RarityColor|rare|Rare Item}} | Rare Item |
{{RarityColor|very rare|Very Rare Item}} | Very Rare Item |
{{RarityColor|legendary|Legendary Item}} | Legendary Item |
{{RarityColor|story|Story Item}} | Story Item |