6,366
editsAd placeholder
Template:SmItemIcon: Difference between revisions
Jump to navigation
Jump to search
Support wrap param
Llamageddon (talk | contribs) (Adding 'alias' as used on RarityItem, for preferable layout for items without rarity.) |
(Support wrap param) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{ItemIcon|name={{{1}}}|size=25|show_name=true|alias={{{alias|}}}}}</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> |