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

Template:Type: Difference between revisions

Template page
Lavaburgs (talk | contribs)
No edit summary
yep...
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch: {{lc:{{{type}}}}}
{{#if: {{{tooltip|}}}|{{#switch: {{lc:{{{1}}}}}
  | hat = [[File:Icon-Hat.png|20px]] [[Hats|hat]]
  | hat = [[File:Hat.png|x{{{size|18px}}}|frameless|link=]]
  | accessory = [[File:Icon-Accessory.png|20px]] [[Accessories|accessory]]
  | accessory = [[File:Accessory.png|x{{{size|18px}}}|frameless|link=]]
  | aura = [[File:Icon-Aura.png|20px]] [[Auras|aura]]
  | aura = [[File:Aura.png|x{{{size|18px}}}|frameless|link=]]
  | trail = [[File:Icon-Trail.png|20px]] [[Trails|trail]]
  | trail = [[File:Trail.png|x{{{size|18px}}}|frameless|link=]]
  | cloak = [[File:Icon-Cloak.png|20px]] [[Cloaks|cloak]]
  | cloak = [[File:Cloak.png|x{{{size|18px}}}|frameless|link=]]
  | rod = [[File:Icon-Rod.png|20px]] [[Rods|rod]]
  | rod = [[File:Rod.png|x{{{size|18px}}}|frameless|link=]]
  | hair = [[File:Hair-Basic.png|20px]] [[hair]]
  | hair = [[File:Hair.png|x{{{size|18px}}}|frameless|link=]]
  | openable = [[File:Openable.png|x18px|frameless|link=]] [[Category:Openable]]
  | openable = [[File:Openable.png|x{{{size|18px}}}|frameless|link=]]
  | quest scroll = [[File:Quest Scroll.png|x18px|frameless|link=]] [[Category:Quest Scroll]]
  | quest scroll = [[File:Quest Scroll.png|x{{{size|18px}}}|frameless|link=]]
  | consumable = [[File:Consumable.png|x18px|frameless|link=]] [[Category:Consumable]]
  | consumable = [[File:Consumable.png|x{{{size|18px}}}|frameless|link=]]
  | currency = [[File:Currency.png|x18px|frameless|link=]] [[Category:Currency]]
  | currency = [[File:Currency.png|x{{{size|18px}}}|frameless|link=]]
  | material = [[File:Material.png|x18px|frameless|link=]] [[Category:Material]]
  | material = [[File:Material.png|x{{{size|18px}}}|frameless|link=]]
  | fish = [[File:Icon-Fish.png|x18px|frameless|link=]] [[Category:Fish]]
  | fish = [[File:Fish.png|x{{{size|18px}}}|frameless|link=]]
}}
}}|{{#switch: {{lc:{{{1}}}}}
{{#switch: {{lc:{{{icon}}}}}
  | hat = [[File:Icon-Hat.png|{{{size|20px}}}]] [[Hats|hat]]
  | hat = [[File:Hat.png|x18px|frameless|link=]]
  | accessory = [[File:Icon-Accessory.png|{{{size|20px}}}]] [[Accessories|accessory]]
  | accessory = [[File:Accessory.png|x18px|frameless|link=]]
  | aura = [[File:Icon-Aura.png|{{{size|20px}}}]] [[Auras|aura]]
  | aura = [[File:Aura.png|x18px|frameless|link=]]
  | trail = [[File:Icon-Trail.png|{{{size|20px}}}]] [[Trails|trail]]
  | trail = [[File:Trail.png|x18px|frameless|link=]]
  | cloak = [[File:Icon-Cloak.png|{{{size|20px}}}]] [[Cloaks|cloak]]
  | cloak = [[File:Cloak.png|x18px|frameless|link=]]
  | rod = [[File:Icon-Rod.png|{{{size|20px}}}]] [[Rods|rod]]
  | rod = [[File:Rod.png|x18px|frameless|link=]]
  | hair = [[File:Hair-Basic.png|{{{size|20px}}}]] [[hair]]
  | hair = [[File:Hair.png|x18px|frameless|link=]]
  | openable = [[File:Openable.png|x{{{size|18px}}}|frameless|link=]]
  | openable = [[File:Openable.png|x18px|frameless|link=]]
  | quest scroll = [[File:Quest Scroll.png|x{{{size|18px}}}|frameless|link=]]
  | quest scroll = [[File:Quest Scroll.png|x18px|frameless|link=]]
  | consumable = [[File:Consumable.png|x{{{size|18px}}}|frameless|link=]]
  | consumable = [[File:Consumable.png|x18px|frameless|link=]]
  | currency = [[File:Currency.png|x{{{size|18px}}}|frameless|link=]]
  | currency = [[File:Currency.png|x18px|frameless|link=]]
  | material = [[File:Material.png|x{{{size|18px}}}|frameless|link=]]
  | material = [[File:Material.png|x18px|frameless|link=]]
  | fish = [[File:Icon-Fish.png|x{{{size|18px}}}|frameless|link=]]
  | fish = [[File:Fish.png|x18px|frameless|link=]]
}}}}<noinclude><templatedata>
}}<noinclude><templatedata>
{
{
"params": {
"params": {
"icon": {
"1": {
"label": "Icon",
"label": "Type",
"description": "Choose to display as an icon",
"description": "Type of the item",
"type": "string",
"type": "string",
"suggestedvalues": [
"suggestedvalues": [
Line 51: Line 50:
"suggested": true
"suggested": true
},
},
"type": {
"icon": {
"label": "Type",
"label": "Icon",
"description": "Type of the item",
"description": "Choose to display as an icon",
"type": "string",
"type": "string",
"suggestedvalues": [
"suggestedvalues": [
Line 69: Line 68:
"Material"
"Material"
],
],
"required": true,
"suggested": true
"suggested": true
}
}
Line 75: Line 73:
"description": "Displays type text/icon.",
"description": "Displays type text/icon.",
"paramOrder": [
"paramOrder": [
"type",
"1",
"icon"
"icon"
]
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 11:31, 15 July 2025

Displays type text/icon.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Type1

Type of the item

Suggested values
Hat Accessory Aura Trail Cloak Rod Hair Openable Quest Scroll Consumable Currency Material
Stringsuggested
Iconicon

Choose to display as an icon

Suggested values
Hat Accessory Aura Trail Cloak Rod Hair Openable Quest Scroll Consumable Currency Material
Stringsuggested