Template:Rarity: Difference between revisions
Template page
More actions
TheMysterys (talk | contribs) m Fixed weird painful error |
No edit summary |
||
Line 1: | Line 1: | ||
{{#switch: {{lc:{{{1}}}}} | {{#switch: {{lc:{{{2}}}}} | ||
| text = {{#switch: {{lc:{{{1}}}}} | |||
| common = <span style="color: #879696">C</span> | |||
| uncommon = <span style="color: #0B9400">U</span> | |||
| rare = <span style="color: #0050B7">R</span> | |||
| epic = <span style="color: #A033EA">E</span> | |||
| legendary = <span style="color: #F87C00">L</span> | |||
| mythic = <span style="color: #B62626">M</span> | |||
| seasonal = <span style="color: #1BA385">S</span> | |||
| limited = <span style="color: #01E3F0">Li</span> | |||
}} | |||
| #default = {{#switch: {{lc:{{{1}}}}} | |||
| common = [[File:Common.png|x18px|frameless|link=]] | | common = [[File:Common.png|x18px|frameless|link=]] | ||
| uncommon = [[File:Uncommon.png|x18px|frameless|link=]] | | uncommon = [[File:Uncommon.png|x18px|frameless|link=]] | ||
Line 6: | Line 17: | ||
| legendary = [[File:Legendary.png|x18px|frameless|link=]] | | legendary = [[File:Legendary.png|x18px|frameless|link=]] | ||
| mythic = [[File:Mythic.png|x18px|frameless|link=]] | | mythic = [[File:Mythic.png|x18px|frameless|link=]] | ||
| seasonal = [[File:Seasonal.png|x18px|frameless|link=]] | |||
| limited = [[File:Limited.png|x18px|frameless|link=]] | |||
}} | |||
}}<noinclude> | }}<noinclude> | ||
<templatedata> | <templatedata> | ||
Line 20: | Line 34: | ||
"Epic", | "Epic", | ||
"Legendary", | "Legendary", | ||
"Mythic" | "Mythic", | ||
"Seasonal", | |||
"Limited" | |||
], | ], | ||
"required": true, | "required": true, | ||
"suggested": true | "suggested": true | ||
}, | |||
"2": { | |||
"label": "Text", | |||
"description": "Using this parameter switches the display to coloured text.", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"Text" | |||
], | |||
"required": false, | |||
"suggested": false | |||
} | } | ||
}, | }, | ||
"description": "Displays a rarity icon." | "description": "Displays a rarity icon or text." | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 06:30, 24 October 2023
Displays a rarity icon or text.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Rarity | 1 | Rarity of item
| String | required |
Text | 2 | Using this parameter switches the display to coloured text.
| String | optional |