Template:ItemBox/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Updated documentation for the new ItemBox |
mNo edit summary |
||
| Line 61: | Line 61: | ||
"params": { | "params": { | ||
"itemName": { | "itemName": { | ||
"label": "Item Name", | |||
"description": "Name of the item. Will be used to get the item data from [[Module:ItemData]]", | "description": "Name of the item. Will be used to get the item data from [[Module:ItemData]]", | ||
"example": "Extended Magazine", | "example": "Extended Magazine", | ||
| Line 68: | Line 69: | ||
}, | }, | ||
"showTierTag": { | "showTierTag": { | ||
"label": "Show Tier Tag", | |||
"description": "Enable a tag top right on the card to show its tier.", | "description": "Enable a tag top right on the card to show its tier.", | ||
" | "suggestedvalues": ["true, false"], | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"overrideDisplayName": { | "overrideDisplayName": { | ||
"label": "Override Display Name", | |||
"description": "Overrides the name that is displayed on the card.", | "description": "Overrides the name that is displayed on the card.", | ||
"example": "Test", | "example": "Test", | ||
| Line 78: | Line 81: | ||
}, | }, | ||
"overrideTier": { | "overrideTier": { | ||
"label": "Override Tier", | |||
"description": "Overrides the cards tier.", | "description": "Overrides the cards tier.", | ||
" | "suggestedvalues": ["1, 2, 3, 4, 5"], | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"overrideSlot": { | "overrideSlot": { | ||
"label": "Override Slot", | |||
"description": "Overrides the cards slot type.", | "description": "Overrides the cards slot type.", | ||
" | "suggestedvalues": ["Weapon, Armor, Tech"], | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"overrideIsActive": { | "overrideIsActive": { | ||
"label": "Override Is Active", | |||
"description": "Overrides the ACTIVE tag.", | "description": "Overrides the ACTIVE tag.", | ||
" | "suggestedvalues": ["true, false"], | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"overrideIsImbue": { | "overrideIsImbue": { | ||
"label": "Override Is Imbue", | |||
"description": "Overrides the IMBUE tag.", | "description": "Overrides the IMBUE tag.", | ||
" | "suggestedvalues": ["true, false"], | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"overrideLinkTooltip": { | "overrideLinkTooltip": { | ||
"label": "Override Link Tooltip", | |||
"description": "Overrides the link from where the tooltip gets its info.", | "description": "Overrides the link from where the tooltip gets its info.", | ||
"example": "Extended Magazine", | "example": "Extended Magazine", | ||
| Line 103: | Line 111: | ||
}, | }, | ||
"overrideLinkImage": { | "overrideLinkImage": { | ||
"description": "Overrides the link from where ItemBox gets the image.", | "label": "Override Link Image", | ||
"description": "Overrides the link from where the ItemBox gets the image.", | |||
"example": "Extended Magazine", | "example": "Extended Magazine", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"overrideLinkClick": { | "overrideLinkClick": { | ||
"description": " | "label": "Override Link Click", | ||
"description": "Overrides where the ItemBox links to when clicked on.", | |||
"example": "Bullet Lifesteal (item)", | "example": "Bullet Lifesteal (item)", | ||
"type": "string" | "type": "string" | ||
} | } | ||
}, | }, | ||
" | "description": " " | ||
} | } | ||
</templatedata><noinclude>[[Category:Template documentation]]</noinclude> | </templatedata><noinclude>[[Category:Template documentation]]</noinclude> | ||
Revision as of 02:01, 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}}
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Item Name | itemName 1 | Name of the item. Will be used to get the item data from [[Module:ItemData]]
| String | required |
| Show Tier Tag | showTierTag | Enable a tag top right on the card to show its tier.
| String | optional |
| Override Display Name | overrideDisplayName | Overrides the name that is displayed on the card.
| String | optional |
| Override Tier | overrideTier | Overrides the cards tier.
| String | optional |
| Override Slot | overrideSlot | Overrides the cards slot type.
| String | optional |
| Override Is Active | overrideIsActive | Overrides the ACTIVE tag.
| String | optional |
| Override Is Imbue | overrideIsImbue | Overrides the IMBUE tag.
| String | optional |
| Override Link Tooltip | overrideLinkTooltip | Overrides the link from where the tooltip gets its info.
| String | optional |
| Override Link Image | overrideLinkImage | Overrides the link from where the ItemBox gets the image.
| String | optional |
| Override Link Click | overrideLinkClick | Overrides where the ItemBox links to when clicked on.
| String | optional |