Template:ItemIcon: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
m replaced with module
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Icon|render|{{{1}}}|l1={{{l1|}}}|size={{{size|}}}|no-link={{{no-link|}}}|icon-only={{{icon-only|}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly><span class="item-link-wrapper" data-item-name="{{#invoke:Icon|getCanonicalName|{{{1}}}}}">{{#invoke:Icon|render|{{{1}}}|l1={{{l1|}}}|link={{{link|}}}|size={{{size|}}}|no-link={{{no-link|}}}|no-file={{{no-file|}}}|icon-only={{{icon-only|}}}|image={{{image|}}}}}</span></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 21:05, 18 May 2026

Template documentation [view] [edit] [history] [purge]

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

[edit source]
{{ItemIcon|Titanic Magazine}}
{{ItemIcon|Disarming Hex|l1=Hex}}
{{ItemIcon|Warp Stone|size=40px}}

Titanic Magazine Hex Warp Stone

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

Item name.

Stringrequired
l1l1

Custom text.

Stringoptional
linklink

Custom link.

Stringoptional
imageimage

Custom image.

Example
Image.png, Image.svg
Stringoptional
sizesize

Icon size.

Default
20px
Example
30px, 40px, 50px
Stringoptional
no-linkno-link

Removes the target link.

Suggested values
true
Booleanoptional
no-fileno-file

Removes the file image.

Suggested values
true
Booleanoptional
icon-onlyicon-only

Removes any text.

Suggested values
true
Booleanoptional