Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Rarity: Difference between revisions

Template page
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 = [[File:Common.png|x16px|frameless]]
| text = {{#switch: {{lc:{{{1}}}}}
  | uncommon = [[File:Uncommon.png|x16px|frameless]]
  | common = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #879696">'''C'''</span> | <span style="color: #879696">'''Common'''</span>}}
  | rare = [[File:Rare.png|x16px|frameless]]
  | uncommon = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #0B9400">'''U'''</span> | <span style="color: #0B9400">'''Uncommon'''</span>}}
  | epic = [[File:Epic.png|x16px|frameless]]
  | rare = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #0050B7">'''R'''</span> | <span style="color: #0050B7">'''Rare'''</span>}}
  | legendary = [[File:Legendary.png|x16px|frameless]]
  | epic = {{#ifeq: {{lc:{{{3}}}}} | short | <span style="color: #A033EA">'''E'''</span> | <span style="color: #A033EA">'''Epic'''</span>}}
  | mythic = [[File:Mythic.png|x16px|frameless]]
  | 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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Rarity1

Rarity of item

Suggested values
Common Uncommon Rare Epic Legendary Mythic Seasonal Limited
Stringrequired
Text2

Using this parameter switches the display to coloured text.

Suggested values
Text
Stringoptional
Text Length3

Providing a value for this parameter

Suggested values
short
Stringoptional