Editing Template:ItemIcon/docGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
This template creates a small item icon. The label and link will be automatically translated on a language subpage. | This template creates a small item icon. The label and link will be automatically translated on a language subpage. Data is pulled automatically from [[Data:ItemData.json]]. | ||
If an item gets renamed, add the old name to the aliases table in [[Module:Icon]]. | |||
== Examples == | == Examples == | ||
| Line 25: | Line 25: | ||
"description": "Custom text.", | "description": "Custom text.", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"size": { | "size": { | ||
| Line 39: | Line 30: | ||
"type": "string", | "type": "string", | ||
"description": "Icon size.", | "description": "Icon size.", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
" | "30px", | ||
"40px", | |||
"50px" | |||
] | ] | ||
}, | }, | ||
"no- | "no-link": { | ||
"description": "Removes the | "description": "Removes the link.", | ||
"type": "boolean", | "type": "boolean", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
| Line 60: | Line 48: | ||
"true" | "true" | ||
], | ], | ||
"description": " | "description": "Hides any text." | ||
} | } | ||
}, | }, | ||
"format": "inline", | "format": "inline", | ||
"description": "" | |||
"description": " " | |||
} | } | ||
</templatedata><includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | </templatedata><includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||