Template:ItemIcon/doc: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
No edit summary
LVL (talk | contribs)
No edit summary
Line 1: Line 1:
== Usage ==
== Usage ==
This template creates a small item icon. The label and link will be automatically translated on a language subpage. See: [[Module:Icon/data]].
This template creates a small item icon. The label and link will be automatically translated on a language subpage. Data is pulled automatically from [[Data:ItemData.json]].


If an item gets renamed, add the old name to the list of aliases at the bottom of the module.
If an item gets renamed, add the old name to the aliases table in [[Module:Icon]].


== Examples ==
== Examples ==

Revision as of 16:18, 9 February 2026

Usage

This template creates a small item icon. The label and link will be automatically translated on a language subpage. Data is pulled automatically from Data:ItemData.json.

If an item gets renamed, add the old name to the aliases table in Module:Icon.

Examples

{{ItemIcon|Titanic Magazine}}
{{ItemIcon|Disarming Hex|l1=Hex}}
{{ItemIcon|Warp Stone|size=40px}}

Titanic Magazine Hex Warp Stone

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

Item name.

Stringrequired
l1l1

Custom text.

Stringoptional
sizesize

Icon size.

Suggested values
30px 40px 50px
Default
20px
Stringoptional
no-linkno-link

Removes the link.

Suggested values
true
Booleanoptional
icon-onlyicon-only

Hides any text.

Suggested values
true
Booleanoptional