Template:ItemIcon: Difference between revisionsGive feedback
Jump to navigation
Jump to search
fix icon wrapping |
fix link to concept instead of item |
||
| Line 1: | Line 1: | ||
<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}} | <includeonly><span style="white-space:nowrap;"><span style="position:relative; bottom:2px; filter:brightness(0) saturate(100%);">[[File:{{{icon|{{{1|}}}}}}.png|link={{#switch:{{{1|}}} | ||
|Bullet Lifesteal = Bullet Lifesteal (item) | |||
|Spirit Lifesteal = Spirit Lifesteal (item) | |||
|{{{1|}}} | |||
}}|{{{size|20px}}}]]</span> [[{{#switch:{{{1|}}} | |||
|Bullet Lifesteal = Bullet Lifesteal (item) | |||
|Spirit Lifesteal = Spirit Lifesteal (item) | |||
|{{{1|}}} | |||
}}|{{{2|{{{1|}}}}}}]]</span></includeonly><noinclude>{{Documentation}}</noinclude> | |||
Revision as of 07:22, 30 October 2024
Usage
This template creates a small item icon. The label and link will be automatically translated on a language subpage.
For more details, see Module:Icon.
Examples
{{ItemIcon|Titanic Magazine}}
{{ItemIcon|Disarming Hex|l1=Hex}}
{{ItemIcon|Warp Stone|size=40px}}
Titanic Magazine
Disarming Hex
Warp Stone
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Item name. | String | required |
| l1 | l1 | Custom text. | String | optional |
| link | link | Custom link. | String | optional |
| image | image | Custom image.
| String | optional |
| size | size | Icon size.
| String | optional |
| no-link | no-link | Removes the target link.
| Boolean | optional |
| no-file | no-file | Removes the file image.
| Boolean | optional |
| icon-only | icon-only | Removes any text.
| Boolean | optional |