Template:ItemBox/doc: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
Jannepg (talk | contribs)
m fixed broken ItemBox
Jannepg (talk | contribs)
mNo edit summary
Line 22: Line 22:
{{ItemBox|itemName = Improved Spirit}}
{{ItemBox|itemName = Improved Spirit}}
{{ItemBox|itemName = Bullet Lifesteal|overrideLinkClick=Bullet Lifesteal (item)}}
{{ItemBox|itemName = Bullet Lifesteal|overrideLinkClick=Bullet Lifesteal (item)}}
{{ItemBox|itemName = Custom Item|item_price=800|item_type=Weapon|ignore=1}}
<!--{{ItemBox|itemName = Custom Item|item_price=800|item_type=Weapon|ignore=1}}-->
<templatedata>
<templatedata>
{
{

Revision as of 23:50, 18 May 2026

CSS3 logo.svg
This template uses CSS found at ItemBox/styles.css.

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

{{ItemBox|itemName = Spirit Shredder Bullets|link=Basic Magazine}} 
{{ItemBox|itemName = High-Velocity Rounds}}
{{ItemBox|itemName = Titanic Magazine}} 
{{ItemBox|itemName = Shadow Weave}}
{{ItemBox|itemName = Dispel Magic}}
{{ItemBox|itemName = Duration Extender}}
{{ItemBox|itemName = Improved Spirit}}
{{ItemBox|itemName = Bullet Lifesteal|link=Bullet Lifesteal (item)}}
{{ItemBox|itemName = Custom Item|item_price=800|item_type=Weapon|ignore=1}}
Imbue

Spirit Shredder Bullets

Active
Imbue

High-Velocity Rounds

Active
Imbue

Titanic Magazine

Active
Imbue

Shadow Weave

Active
Imbue

Dispel Magic

Active
Imbue

Duration Extender

Active
Imbue

Improved Spirit

Active
Imbue

Bullet Lifesteal

Active

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
item_nameitem_name 1

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_locitem_loc

The name of the item, when is needed get data from a item, but print other item's name.

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
ignoreignore

Skip database lookups for items not in ItemData.json. When set to 1, the template will not attempt to retrieve data from Module:ItemData and will use default or override values only. Useful for custom items, test items, or items not yet in the database.

Suggested values
1 or 0
Example
1
Booleanoptional