Template:ItemBox/doc

From Deadlock Wiki
Revision as of 08:45, 14 September 2024 by Sylphoid (talk | contribs) (Created page with "A port of the initial box in Template:Infobox item with links, for use on pages that could use it without the whole infobox. All data for each item is populated using data from Data:ItemData.json, retrieved by Module:ItemData. ===Examples=== <pre> {{ItemBox|item_name = Soul Shredder Bullets|link=Basic Magazine}} {{ItemBox|item_name = Titanic Magazine}} {{ItemBox|item_name = Shadow Weave}} {{ItemBox|item_name = Debuff Remover}} {{ItemBox|item_name = Durati...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A port of the initial box in Template:Infobox item with links, for use on pages that could use it without the whole infobox.

All data for each item is populated using data from Data:ItemData.json, retrieved by Module:ItemData.

Examples[edit source]

{{ItemBox|item_name = Soul Shredder Bullets|link=Basic Magazine}} 
{{ItemBox|item_name = Titanic Magazine}} 
{{ItemBox|item_name = Shadow Weave}}
{{ItemBox|item_name = Debuff Remover}}
{{ItemBox|item_name = Duration Extender}}
{{ItemBox|item_name = Improved Spirit}}
Souls 1250
Soul Shredder Bullets
Souls 3500

Titanic Magazine
Souls 6200
ACTIVE
Shadow Weave
Souls 4250
ACTIVE

Debuff Remover
Souls 1250
Duration Extender
Souls 3500

Improved Spirit

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
item_nameitem_name

Name of the item

Example
Basic Magazine
Stringrequired
linklink

The name of the item's link in cases where item_name is incorrect

Example
Bullet Lifesteal (item)
Stringoptional
item_typeitem_type

Overrides default item type. See Module:ItemData

Suggested values
Weapon Vitality Spirit
Example
Spirit
Stringoptional
item_priceitem_price

Overrides default item price. See Module:ItemData

Example
500
Numberoptional