Template:ItemIcon: Difference between revisions
Jump to navigation
Jump to search
Tag: Undo |
fix icon wrapping |
||
Line 1: | Line 1: | ||
<includeonly><span style="position: relative; bottom: 2px; filter: brightness(0) saturate(100%);">[[File:{{{icon|{{{1|}}}}}}.png|link={{{1|}}}|{{{size|20px}}}]]</span> [[{{{1|}}}|{{{2|{{{1|}}}}}}]]</includeonly><noinclude>{{Documentation}} | <includeonly><span style="white-space:nowrap;"><span style="position:relative; bottom:2px; filter:brightness(0) saturate(100%);">[[File:{{{icon|{{{1|}}}}}}.png|link={{{1|}}}|{{{size|20px}}}]]</span> [[{{{1|}}}|{{{2|{{{1|}}}}}}]]</span></includeonly><noinclude>{{Documentation}} | ||
[[Category:Icon templates]]</noinclude> | [[Category:Icon templates]]</noinclude> |
Revision as of 15:58, 25 October 2024
Usage
This icon template is used to create a small picture associated with an item.
Examples
{{ItemIcon|Basic Magazine}}
{{ItemIcon|Basic Magazine|Custom}}
Parameters
- p1
- Item name (required).
- p2
- Custom name (optional).
- size
- Size (optional). Default is 20px.
- icon
- Custom icon (optional)