Template:Rarity: Difference between revisions
Template page
More actions
TheMysterys (talk | contribs) m changed height to be fixed instead of width |
No edit summary |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{{1}}} | {{#switch: {{lc:{{{2}}}}} | ||
| common = | | text = {{#switch: {{lc:{{{1}}}}} | ||
| uncommon = | | common = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #879696">'''C'''</span> | <span style="color: #879696">'''Common'''</span>}} | ||
| rare = | | uncommon = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #0B9400">'''U'''</span> | <span style="color: #0B9400">'''Uncommon'''</span>}} | ||
| epic = | | rare = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #0050B7">'''R'''</span> | <span style="color: #0050B7">'''Rare'''</span>}} | ||
| legendary = | | epic = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #A033EA">'''E'''</span> | <span style="color: #A033EA">'''Epic'''</span>}} | ||
| mythic = | | 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> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Rarity", | |||
"description": "Rarity of item", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"Common", | |||
"Uncommon", | |||
"Rare", | |||
"Epic", | |||
"Legendary", | |||
"Mythic", | |||
"Seasonal", | |||
"Limited" | |||
], | |||
"required": 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 or text." | |||
} | |||
</templatedata> | |||
</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 |