Template:Type: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#switch: {{lc:{{{ | {{#switch: {{lc:{{{type}}}}} | ||
| hat = [[File:Icon-Hat.png|20px]] [[Hats|hat]] | | hat = [[File:Icon-Hat.png|20px]] [[Hats|hat]] | ||
| accessory = [[File:Icon-Accessory.png|20px]] [[Accessories|accessory]] | | accessory = [[File:Icon-Accessory.png|20px]] [[Accessories|accessory]] | ||
Line 31: | Line 31: | ||
{ | { | ||
"params": { | "params": { | ||
" | "icon": { | ||
"label": " | "label": "Icon", | ||
"description": " | "description": "Choose to display as an icon", | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
Line 49: | Line 49: | ||
"Material" | "Material" | ||
], | ], | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
" | "type": { | ||
"label": " | "label": "Type", | ||
"description": " | "description": "Type of the item", | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
Line 70: | Line 69: | ||
"Material" | "Material" | ||
], | ], | ||
"required": true, | |||
"suggested": true | "suggested": true | ||
} | } | ||
}, | }, | ||
"description": "Displays | "description": "Displays type text/icon.", | ||
"paramOrder": [ | |||
"type", | |||
"icon" | |||
] | |||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 19:27, 13 December 2024
Displays type text/icon.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | type | Type of the item
| String | required |
Icon | icon | Choose to display as an icon
| String | suggested |