Template:ItemBox: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Saag (talk | contribs)
m use ifeq true for is_active
Saag (talk | contribs)
m Added some more examples
Line 40: Line 40:
A port of the initial box in [[Template:Infobox item]] with links, for use on pages that could use it without the whole infobox.
A port of the initial box in [[Template:Infobox item]] with links, for use on pages that could use it without the whole infobox.


{{ItemBox|item_name = Healbane}}  
{{ItemBox|item_name = Basic Magazine}}
{{ItemBox|item_name = Titanic Magazine}}  
{{ItemBox|item_name = Shadow Weave}}
{{ItemBox|item_name = Shadow Weave}}
{{ItemBox|item_name = Debuff Remover}}
{{ItemBox|item_name = Duration Extender}}
{{ItemBox|item_name = Duration Extender}}
{{ItemBox|item_name = Improved Spirit}}
<noinclude>
<noinclude>
<templatedata>
<templatedata>

Revision as of 23:36, 9 September 2024

SoulsCannot format non-number value.
[[File:{{{item_name}}}.png|50px|link={{{item_name}}}]]

[[File:Item Not Found..png|20px|link=Item Not Found.]]

[[{{{item_name}}}]]


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


Souls500
Basic Magazine
Souls3,500

Titanic Magazine
Souls6,200
ACTIVE
Shadow Weave
Souls4,250
ACTIVE

Debuff Remover
Souls1,250
Duration Extender
Souls3,500

Improved Spirit


No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
item_nameitem_name

Name of the item

Example
Basic Magazine
Stringrequired
display_namedisplay_name

The display name of the item (for special cases such as Bullet Lifesteal (item) or Spirit Lifesteal (item))

Example
Bullet Lifesteal
Stringoptional
componentOfcomponentOf

The name of the item this is a component of, for linking

Example
Headhunter
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
activeactive

Overrides default item active status. See Module:ItemData

Example
true
Booleanoptional