Jump to content

Template:Infobox/BaseItem

From DevilutionX Wiki
Revision as of 05:27, 1 December 2025 by KPhoenix (talk | contribs) (Created page with "<includeonly> <div class="dxx-infobox"> {| class="infobox bordered" |- ! colspan="2" class="infobox-title">{{{name|Unnamed Item}}} <!-- Item graphic --> |- | colspan="2" class="infobox-image"> [[File:{{{image|}}}|128px|center|{{{name|}}}]] <!-- Core identity --> |- ! Index ID | {{{index_id|}}} |- ! Drop Rate | {{{drop_rate|}}} |- ! Class | {{{class|}}} |- ! Equip Type | {{{equip_type|}}} |- ! Item Type | {{{item_type|}}} |- ! Unique Base | {{{unique_base|}}} |- ! Shor...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


This template displays BaseItem information in an infobox.

Parameters

name
 Item name (displayed at the top of the infobox)
image
 File name of the item icon, without the "File:" prefix
 (e.g. ITMHLM.png)
index_id
 Internal Index ID of the base item
drop_rate
 Drop rate / rarity descriptor
class
 Item class (e.g. Armor, Weapon, Misc)
equip_type
 Equip slot (e.g. Helm, Chest, Ring, Belt)
item_type
 Internal item type/category
unique_base
 Whether this base is used by a unique item, or which unique uses it
short_name
 Short display name / code name
quality_level
 Item quality level (qlvl)
durability
 Base durability
damage
 Damage range (for weapons), e.g. 2–5
armor_class
 Armor Class (AC), e.g. 4 or 8–12
req_str
 Required Strength
req_mag
 Required Magic
req_dex
 Required Dexterity
special_effects
 Any special effects / flags
misc_id
 Miscellaneous ID
spell
 Spell associated with the item (if any)
consumable
 Whether this item is consumable (e.g. Yes/No)
price
 Base price in gold

Example

{{Infobox/BaseItem
| name          = Cap
| image         = cap.png
| index_id      = 48
| drop_rate     = 1
| class         = Armor
| equip_type    = Helm
| item_type     = Helm
| unique_base   = NONE (This field would be skipped for this item)
| short_name    = Cap
| quality_level = 1
| durability    = 15
| damage        = 0 (This field would be skipped for this item)
| armor_class   = 1-3
| req_str       = 0 (This field would be skipped for this item)
| req_mag       = 0 (This field would be skipped for this item)
| req_dex       = 0 (This field would be skipped for this item)
| special_effects = (This field would be skipped for this item)
| misc_id       = NONE (This field would be skipped for this item)
| spell         = Null (This field would be skipped for this item)
| consumable    = false
| price         = 15
}}