Template:SmItemIcon: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Created)
 
(Support wrap param)
 
(2 intermediate revisions by 2 users 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>.
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 10: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.