Template:ItemBox/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
mNo edit summary |
Updated documentation for the new ItemBox |
||
| Line 1: | Line 1: | ||
{{TS}} | {{TS}} | ||
The data for each item is populated from [[Data:ItemData.json]] and retrieved by [[Module:ItemData]]. | |||
===Examples=== | ===Examples=== | ||
<pre> | <pre> | ||
{{ItemBox| | {{ItemBox|Close Quarters}} | ||
{{ItemBox| | {{ItemBox|Spirit Shredder Bullets}} | ||
{{ItemBox| | {{ItemBox|Shadow Weave}} | ||
{{ItemBox| | {{ItemBox|Silencer}} | ||
{{ItemBox| | {{ItemBox|Haunting Shot}} | ||
{{ItemBox| | {{ItemBox|Extra Health}} | ||
{{ItemBox| | {{ItemBox|Bullet Lifesteal|overrideLinkClick = Bullet_Lifesteal_(item)}} | ||
{{ItemBox| | {{ItemBox|Dispel Magic}} | ||
{{ItemBox| | {{ItemBox|Unstoppable}} | ||
{{ItemBox|Celestial Blessing}} | |||
{{ItemBox|Golden Goose Egg}} | |||
{{ItemBox|Duration Extender|overrideIsImbue = true}} | |||
{{ItemBox|Surge of Power|overrideIsImbue = true}} | |||
{{ItemBox|Echo Shard|overrideIsImbue = true}} | |||
{{ItemBox|Frostbite Charm}} | |||
</pre> | </pre> | ||
{{ItemBox| | |||
{{ItemBox| | {{ItemBox|Close Quarters}} | ||
{{ItemBox| | {{ItemBox|Spirit Shredder Bullets}} | ||
{{ItemBox| | {{ItemBox|Shadow Weave}} | ||
{{ItemBox| | {{ItemBox|Silencer}} | ||
{{ItemBox| | {{ItemBox|Haunting Shot}} | ||
{{ItemBox| | {{ItemBox|Extra Health}} | ||
{{ItemBox| | {{ItemBox|Bullet Lifesteal|overrideLinkClick = Bullet_Lifesteal_(item)}} | ||
< | {{ItemBox|Dispel Magic}} | ||
{{ItemBox|Unstoppable}} | |||
{{ItemBox|Celestial Blessing}} | |||
{{ItemBox|Golden Goose Egg}} | |||
{{ItemBox|Duration Extender|overrideIsImbue = true}} | |||
{{ItemBox|Surge of Power|overrideIsImbue = true}} | |||
{{ItemBox|Echo Shard|overrideIsImbue = true}} | |||
{{ItemBox|Frostbite Charm}} | |||
<pre> | |||
{{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}} | |||
</pre> | |||
{{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}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "itemName": { | ||
"description": "Name of the item", | "description": "Name of the item. Will be used to get the item data from [[Module:ItemData]]", | ||
"example": " | "example": "Extended Magazine", | ||
"type": "string", | "type": "string", | ||
"required": true, | "required": true, | ||
"aliases": [ | "aliases": ["1"] | ||
}, | }, | ||
" | "showTierTag": { | ||
"description": " | "description": "Enable a tag top right on the card to show its tier.", | ||
"example": " | "example": "true", | ||
"type": "string" | |||
}, | |||
"overrideDisplayName": { | |||
"description": "Overrides the name that is displayed on the card.", | |||
"example": "Test", | |||
"type": "string" | |||
}, | |||
"overrideTier": { | |||
"description": "Overrides the cards tier.", | |||
"example": "1, 2, 3, 4 or 5", | |||
"type": "string" | |||
}, | |||
"overrideSlot": { | |||
"description": "Overrides the cards slot type.", | |||
"example": "Weapon, Armor or Tech", | |||
"type": "string" | |||
}, | |||
"overrideIsActive": { | |||
"description": "Overrides the ACTIVE tag.", | |||
"example": "true or false", | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
"overrideIsImbue": { | |||
"description": " | "description": "Overrides the IMBUE tag.", | ||
"example": " | "example": "true or false", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "overrideLinkTooltip": { | ||
"description": "Overrides | "description": "Overrides the link from where the tooltip gets its info.", | ||
"example": " | "example": "Extended Magazine", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "overrideLinkImage": { | ||
"description": "Overrides | "description": "Overrides the link from where ItemBox gets the image.", | ||
"example": " | "example": "Extended Magazine", | ||
"type": " | "type": "string" | ||
}, | }, | ||
" | "overrideLinkClick": { | ||
"description": " | "description": "The name of the item's link in cases where itemName is incorrect", | ||
"example": " | "example": "Bullet Lifesteal (item)", | ||
"type": " | "type": "string" | ||
} | } | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "itemName", | ||
" | "showTierTag", | ||
" | "overrideDisplayName", | ||
" | "overrideTier", | ||
" | "overrideSlot", | ||
" | "overrideIsActive", | ||
"overrideIsImbue", | |||
"overrideLinkTooltip", | |||
"overrideLinkImage", | |||
"overrideLinkClick" | |||
], | ], | ||
"format": "inline" | "format": "inline" | ||
} | } | ||
</templatedata><noinclude>[[Category:Template documentation]]</noinclude> | </templatedata><noinclude>[[Category:Template documentation]]</noinclude> | ||
Revision as of 01:09, 19 May 2026
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|overrideIsImbue = true}}
{{ItemBox|Surge of Power|overrideIsImbue = true}}
{{ItemBox|Echo Shard|overrideIsImbue = true}}
{{ItemBox|Frostbite Charm}}
{{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}}
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| itemName | itemName 1 | Name of the item. Will be used to get the item data from [[Module:ItemData]]
| String | required |
| showTierTag | showTierTag | Enable a tag top right on the card to show its tier.
| String | optional |
| overrideDisplayName | overrideDisplayName | Overrides the name that is displayed on the card.
| String | optional |
| overrideTier | overrideTier | Overrides the cards tier.
| String | optional |
| overrideSlot | overrideSlot | Overrides the cards slot type.
| String | optional |
| overrideIsActive | overrideIsActive | Overrides the ACTIVE tag.
| String | optional |
| overrideIsImbue | overrideIsImbue | Overrides the IMBUE tag.
| String | optional |
| overrideLinkTooltip | overrideLinkTooltip | Overrides the link from where the tooltip gets its info.
| String | optional |
| overrideLinkImage | overrideLinkImage | Overrides the link from where ItemBox gets the image.
| String | optional |
| overrideLinkClick | overrideLinkClick | The name of the item's link in cases where itemName is incorrect
| String | optional |