Template:ItemBox/doc: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
Jannepg (talk | contribs)
mNo edit summary
Jannepg (talk | contribs)
mNo edit summary
Line 14: Line 14:
{{ItemBox|Celestial Blessing}}
{{ItemBox|Celestial Blessing}}
{{ItemBox|Golden Goose Egg}}
{{ItemBox|Golden Goose Egg}}
{{ItemBox|Duration Extender|overrideIsImbue = true}}
{{ItemBox|Duration Extender}}
{{ItemBox|Surge of Power|overrideIsImbue = true}}
{{ItemBox|Surge of Power}}
{{ItemBox|Echo Shard|overrideIsImbue = true}}
{{ItemBox|Echo Shard}}
{{ItemBox|Frostbite Charm}}
{{ItemBox|Frostbite Charm}}
</pre>
</pre>
Line 31: Line 31:
{{ItemBox|Celestial Blessing}}
{{ItemBox|Celestial Blessing}}
{{ItemBox|Golden Goose Egg}}
{{ItemBox|Golden Goose Egg}}
{{ItemBox|Duration Extender|overrideIsImbue = true}}
{{ItemBox|Duration Extender}}
{{ItemBox|Surge of Power|overrideIsImbue = true}}
{{ItemBox|Surge of Power}}
{{ItemBox|Echo Shard|overrideIsImbue = true}}
{{ItemBox|Echo Shard}}
{{ItemBox|Frostbite Charm}}
{{ItemBox|Frostbite Charm}}



Revision as of 13:44, 21 May 2026

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

The data for each item is populated from Data:ItemData.json and retrieved by Module:ItemData.

Examples

{{ItemBox|Close Quarters}}
{{ItemBox|Spirit Shredder Bullets}}
{{ItemBox|Shadow Weave}}
{{ItemBox|Silencer}}
{{ItemBox|Haunting Shot}}
{{ItemBox|Extra Health}}
{{ItemBox|Bullet Lifesteal|overrideLinkClick = Bullet_Lifesteal_(item)}}
{{ItemBox|Dispel Magic}}
{{ItemBox|Unstoppable}}
{{ItemBox|Celestial Blessing}}
{{ItemBox|Golden Goose Egg}}
{{ItemBox|Duration Extender}}
{{ItemBox|Surge of Power}}
{{ItemBox|Echo Shard}}
{{ItemBox|Frostbite Charm}}
Imbue

Close Quarters

Active
Imbue

Spirit Shredder Bullets

Active
Imbue

Shadow Weave

Active
Imbue

Silencer

Active
Imbue

Haunting Shot

Active
Imbue

Extra Health

Active
Imbue

Bullet Lifesteal

Active
Imbue

Dispel Magic

Active
Imbue

Unstoppable

Active
Imbue

Celestial Blessing

Active
Imbue

Golden Goose Egg

Active
Imbue

Duration Extender

Active
Imbue

Surge of Power

Active
Imbue

Echo Shard

Active
Imbue

Frostbite Charm

Active
{{ItemBox|Restorative Shot|showTierTag = true}}
{{ItemBox|High-Velocity Rounds|overrideDisplayName = Test Name}}
{{ItemBox|Intensifying Magazine|overrideTier = 4}}
{{ItemBox|Weakening Headshot|overrideSlot = Tech}}
{{ItemBox|Recharging Rush|overrideIsActive = true}}
{{ItemBox|Alchemical Fire|overrideIsImbue = true}}
{{ItemBox|Ballistic Enchantment|overrideLinkTooltip = Extended Magazine}}
{{ItemBox|Escalating Resilience|overrideLinkImage = Extended Magazine}}
{{ItemBox|Headhunter|overrideLinkClick = Extended Magazine}}
Imbue

Restorative Shot

Active
Imbue

Test Name

Active
Imbue

Intensifying Magazine

Active
Imbue

Weakening Headshot

Active
Imbue

Recharging Rush

Active
Imbue

Alchemical Fire

Active
Imbue

Ballistic Enchantment

Active
Imbue

Escalating Resilience

Active
Imbue

Headhunter

Active

Template parameters

ParameterDescriptionTypeStatus
Item NameitemName 1

Name of the item. Will be used to get the item data from [[Module:ItemData]]

Example
Extended Magazine
Stringrequired
Show Tier TagshowTierTag

Enable a tag top right on the card to show its tier.

Suggested values
true, false
Stringoptional
Override Display NameoverrideDisplayName

Overrides the name that is displayed on the card.

Example
Test
Stringoptional
Override TieroverrideTier

Overrides the cards tier.

Suggested values
1, 2, 3, 4, 5
Stringoptional
Override SlotoverrideSlot

Overrides the cards slot type.

Suggested values
Weapon, Armor, Tech
Stringoptional
Override Is ActiveoverrideIsActive

Overrides the ACTIVE tag.

Suggested values
true, false
Stringoptional
Override Is ImbueoverrideIsImbue

Overrides the IMBUE tag.

Suggested values
true, false
Stringoptional
Override Link TooltipoverrideLinkTooltip

Overrides the link from where the tooltip gets its info.

Example
Extended Magazine
Stringoptional
Override Link ImageoverrideLinkImage

Overrides the link from where the ItemBox gets the image.

Example
Extended Magazine
Stringoptional
Override Link ClickoverrideLinkClick

Overrides where the ItemBox links to when clicked on.

Example
Bullet Lifesteal (item)
Stringoptional