Template:SmItemIcon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Support wrap param) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{ItemIcon|name={{{1}}}|size=25|show_name=true}}</onlyinclude></includeonly><noinclude> | <includeonly><onlyinclude>{{ItemIcon|name={{{1}}}|size=25|show_name=true|alias={{{alias|}}}|wrap={{{wrap|}}} }}</onlyinclude></includeonly><noinclude> | ||
Shorthand for <code><nowiki>{{ItemIcon|name=ITEM_NAME|size=25|show_name=true}}</nowiki></code>. See also [[Template:ItemIcon]]. | Shorthand for <code><nowiki>{{ItemIcon|name=ITEM_NAME|size=25|show_name=true}}</nowiki></code>. See also [[Template:ItemIcon]]. | ||
See example: <code><nowiki>{{SmItemIcon|Potion of Healing}}</nowiki></code> {{SmItemIcon|Potion of Healing}} | See example: <code><nowiki>{{SmItemIcon|Potion of Healing}}</nowiki></code> {{SmItemIcon|Potion of Healing}} | ||
Optional parameter <tt>wrap</tt>, if specified, will enable wrapping. The parameter <tt>alias</tt> will set an alias for the link. | |||
</noinclude> | </noinclude> |
Latest revision as of 09:16, 18 September 2023
Shorthand for {{ItemIcon|name=ITEM_NAME|size=25|show_name=true}}
. See also Template:ItemIcon.
See example: {{SmItemIcon|Potion of Healing}}
Potion of Healing
Optional parameter wrap, if specified, will enable wrapping. The parameter alias will set an alias for the link.