Template:Weapon infobox

From BTScape Wiki
Revision as of 02:23, 24 July 2026 by Bembi (talk | contribs) (Add Weapon infobox template (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the infobox template for weapon items (any item type with Template:Code in Template:Code). For non-weapon armor/clothing use Template:Tl; for food/potions use Template:Tl.

Usage

{{Weapon infobox
| name        = Iron Sword
| image       = Iron Sword.png
| id          = 1
| key         = iron_sword
| strength    = 5
| accuracy    = 5
| damage_type = Pure
| attack_style = Melee
| attack_interval = 5
| attack_sound =
| equip_slot  = Hand
| two_handed  = no
| max_stack   = 1
| description = A plain, well-balanced blade.
}}

Parameters

Parameter Meaning Source field
name Display name (defaults to page title) name
image Icon/render filename, uploaded separately (client art, no server equivalent)
id Numeric item id (stable, used in loot tables/shops) id
key String key used in scripts/content files key
strength Additive max-hit bonus while wielded strength
accuracy Additive hit-chance bonus while wielded accuracy
damage_type Element the swing deals; blank = attacker's own default damage_type
attack_style Melee / Ranged / Magic (presentation only today) attack_style
attack_interval Ticks between attacks (1 tick = 400 ms by default) attack_interval_ticks
attack_sound Sound key played on swing, if any attack_sound
equip_slot Slot this occupies (almost always Hand for weapons) equip_slot
two_handed Whether equipping it also vacates offhand two_handed
max_stack Inventory stack size (1 = unstackable) max_stack
armor Optional: flat damage reduction, for weapons that also guard armor
description Free-text flavor/summary written for the wiki, not the game data

Every weapon page should also include a short prose intro above the infobox and a "Notes" or "Where to find it" section below it — the infobox is a data summary, not the whole page.