Jump to content

Template:Infobox Weapon/doc

From Community Wiki | Soulbound: Online

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.

Template parameters

ParameterDescriptionTypeStatus
Namename

no description

Stringrequired
Imageimage

no description

Filesuggested
Alt textalt

no description

Stringoptional
Typetype

no description

Stringoptional
Weapon typeweapontype

no description

Stringsuggested
Rarityrarity

no description

Stringrequired
Item levelitemlevel

no description

Stringoptional
Damagedamage

no description

Stringrequired
Attack speedattackspeed

no description

Stringoptional
Attack typeattacktype

no description

Stringoptional
Rangerange

no description

Stringoptional
Max healthmaxhp

no description

Stringoptional
Defence ratedefense

no description

Stringoptional
Dodge chancedodge

no description

Stringoptional
Critical strike chancecsc

no description

Stringoptional
Critical strike damagecsd

no description

Stringoptional
Cooldown reductioncdr

no description

Stringoptional
Buff powerbuffpower

no description

Stringoptional
Heavy hit chanceheavyhitchance

no description

Stringoptional
Movement speedspeed

no description

Stringoptional
Strength requirementstrength_req

no description

Stringoptional
Dexterity requirementdexterity_req

no description

Stringoptional
Knowledge requirementknowledge_req

no description

Stringoptional
Marksmanship requirementmarksmanship_req

no description

Stringoptional
Technology requirementtechnology_req

no description

Stringoptional
Cooking requirementcooking_req

no description

Stringoptional
Tradeabletradeable

no description

Stringoptional
Sell valuevalue

no description

Stringoptional
Examineexamine

no description

Stringoptional
Selected versionsel

no description

Stringoptional