Template:ItemIcon/doc: Difference between revisionsGive feedback
No edit summary Tag: Manual revert |
m upd |
||
| Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
This | This template creates a small item icon. The label and link will be automatically translated on a language subpage. See: [[Module:Icon/data]]. | ||
== Examples == | == Examples == | ||
<pre style="width:50%"> | <pre style="width:50%"> | ||
{{ItemIcon| | {{ItemIcon|Titanic Magazine}} | ||
{{ItemIcon|Disarming Hex|l1=Hex}} | |||
{{ItemIcon|Warp Stone|size=40px}} | |||
</pre> | </pre> | ||
{{ItemIcon|Titanic Magazine}} | |||
{{ItemIcon|Disarming Hex|l1=Hex}} | |||
{{ItemIcon|Warp Stone|size=40px}} | |||
{{ | <templatedata> | ||
{ | |||
"params": { | |||
{ | "1": { | ||
"description": "Item name.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"l1": { | |||
"description": "Custom text.", | |||
"type": "string" | |||
}, | |||
"size": { | |||
<includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | "default": "20px", | ||
"type": "string", | |||
"description": "Icon size.", | |||
"suggestedvalues": [ | |||
"30px", | |||
"40px", | |||
"50px" | |||
] | |||
}, | |||
"no-link": { | |||
"description": "Removes the link.", | |||
"type": "boolean", | |||
"suggestedvalues": [ | |||
"true" | |||
] | |||
}, | |||
"icon-only": { | |||
"type": "boolean", | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Hides any text." | |||
} | |||
}, | |||
"format": "inline", | |||
"description": "" | |||
} | |||
</templatedata><includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | |||