Template:Rarity: Difference between revisions
Template page
More actions
TheMysterys (talk | contribs) m Fixed weird painful error |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{lc:{{{1}}}}} | {{#switch: {{lc:{{{2}}}}} | ||
| common = [[File:Common.png| | | text = {{#switch: {{lc:{{{1}}}}} | ||
| uncommon = [[File:Uncommon.png| | | common = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #879696">'''C'''</span> | <span style="color: #879696">'''Common'''</span>}} | ||
| rare = [[File:Rare.png| | | uncommon = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #0B9400">'''U'''</span> | <span style="color: #0B9400">'''Uncommon'''</span>}} | ||
| epic = [[File:Epic.png| | | rare = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #0050B7">'''R'''</span> | <span style="color: #0050B7">'''Rare'''</span>}} | ||
| legendary = [[File:Legendary.png| | | epic = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #A033EA">'''E'''</span> | <span style="color: #A033EA">'''Epic'''</span>}} | ||
| mythic = [[File:Mythic.png| | | legendary = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #F87C00">'''L'''</span> | <span style="color: #F87C00">'''Legendary'''</span>}} | ||
| mythic = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #B62626">'''M'''</span> | <span style="color: #B62626">'''Mythic'''</span>}} | |||
| seasonal = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #1BA385">'''S'''</span> | <span style="color: #1BA385">'''Seasonal'''</span>}} | |||
| limited = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #01E3F0">'''Li'''</span> | <span style="color: #01E3F0">'''Limited'''</span>}} | |||
}} | |||
| #default = {{#switch: {{lc:{{{1}}}}} | |||
| common = [[File:Common.png|x{{{size|18px}}}|frameless|link=]] | |||
| uncommon = [[File:Uncommon.png|x{{{size|18px}}}|frameless|link=]] | |||
| rare = [[File:Rare.png|x{{{size|18px}}}|frameless|link=]] | |||
| epic = [[File:Epic.png|x{{{size|18px}}}|frameless|link=]] | |||
| legendary = [[File:Legendary.png|x{{{size|18px}}}|frameless|link=]] | |||
| mythic = [[File:Mythic.png|x{{{size|18px}}}|frameless|link=]] | |||
| seasonal = [[File:Seasonal.png|x{{{size|18px}}}|frameless|link=]] | |||
| limited = [[File:Limited.png|x{{{size|18px}}}|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 | |||
}, | |||
"3": { | |||
"label": "Text Length", | |||
"description": "Providing a value for this parameter", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"short" | |||
], | |||
"required": false, | |||
"suggested": false | |||
} | } | ||
}, | }, | ||
"description": "Displays a rarity icon." | "description": "Displays a rarity icon or text." | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 11:32, 15 July 2025
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 |
Text Length | 3 | Providing a value for this parameter
| String | optional |