Template:Infobox Weapon
The weapon infobox — the canonical infobox for every equippable weapon. It shows the combat panel, stat bonuses and skill requirements, colours the name bar by rarity, and auto-categorises the host page by weapon type and rarity.
Usage
{{Infobox Weapon
| name =
| image =
| alt =
| type =
| weapontype =
| rarity =
| itemlevel =
| damage =
| attackspeed =
| attacktype =
| range =
| maxhp =
| defense =
| dodge =
| csc =
| csd =
| cdr =
| buffpower =
| heavyhitchance =
| speed =
| strength_req =
| dexterity_req =
| knowledge_req =
| marksmanship_req =
| technology_req =
| cooking_req =
| tradeable =
| value =
| examine =
}}
Parameters
| Parameter | Required | Description |
|---|---|---|
name |
Yes | Exact in-game weapon name; the rarity-coloured header. |
image |
Recommended | Sprite file name without File:. Falls back to the wiki logo and tags Category:Pages needing an image.
|
alt |
No | Image alt text. |
type |
No | Category label (defaults to Weapon).
|
weapontype |
Recommended | Weapon class: sword, greatsword or hammer. Mapped onto Category:Weapons - Swords
, Category:Weapons - Greatswords or Category:Weapons - Hammers . Any other value files no subcategory, so a typo cannot invent one. Add a new class to the switch in the template and create its category before using it. |
rarity |
Yes | Common/Uncommon/Rare/Epic/Legendary. Name-bar colour + rarity category.
|
itemlevel |
No | Item level. |
damage |
Yes | Base damage. |
attackspeed |
No | Attack speed. |
attacktype |
No | Melee / Ranged / etc. |
range |
No | Attack range. |
maxhp, defense, dodge, csc, csd, cdr, buffpower, heavyhitchance, speed |
No | Stat bonuses shown with a leading +. csc/csd = crit chance/damage, cdr = cooldown reduction, speed = movement speed.
|
strength_req, dexterity_req, knowledge_req, marksmanship_req, technology_req, cooking_req |
No | Skill level requirements to equip. |
tradeable |
No | Yes/No.
|
value |
No | Sell value in gold. |
examine |
No | Flavour line (alias: description).
|
Versions / switch pattern
Multiple variants on one page: base version uses the unsuffixed parameters; an alternate uses the same names with a numeric suffix (name2, image2, damage2, …) plus an optional version2 label. Pass | sel = 2 to render it. Every displayed field honours the suffix, so upgrade tiers or skins can share one page.
Categories applied
On an article: Category:Weapons, the matching class category when weapontype is recognised, and the rarity category. Hidden maintenance: Category:Pages needing an image when image is blank; Category:Pages missing data when any of name, rarity or damage is blank.
Canonical weapon infobox: combat panel, stat bonuses, requirements, rarity colouring, sel/version switch, auto-categorisation.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | no description | String | required |
| Image | image | no description | File | suggested |
| Alt text | alt | no description | String | optional |
| Type | type | no description | String | optional |
| Weapon type | weapontype | no description | String | suggested |
| Rarity | rarity | no description | String | required |
| Item level | itemlevel | no description | String | optional |
| Damage | damage | no description | String | required |
| Attack speed | attackspeed | no description | String | optional |
| Attack type | attacktype | no description | String | optional |
| Range | range | no description | String | optional |
| Max health | maxhp | no description | String | optional |
| Defence rate | defense | no description | String | optional |
| Dodge chance | dodge | no description | String | optional |
| Critical strike chance | csc | no description | String | optional |
| Critical strike damage | csd | no description | String | optional |
| Cooldown reduction | cdr | no description | String | optional |
| Buff power | buffpower | no description | String | optional |
| Heavy hit chance | heavyhitchance | no description | String | optional |
| Movement speed | speed | no description | String | optional |
| Strength requirement | strength_req | no description | String | optional |
| Dexterity requirement | dexterity_req | no description | String | optional |
| Knowledge requirement | knowledge_req | no description | String | optional |
| Marksmanship requirement | marksmanship_req | no description | String | optional |
| Technology requirement | technology_req | no description | String | optional |
| Cooking requirement | cooking_req | no description | String | optional |
| Tradeable | tradeable | no description | String | optional |
| Sell value | value | no description | String | optional |
| Examine | examine | no description | String | optional |
| Selected version | sel | no description | String | optional |