Jump to content

Template:Weapon/doc

From Drifters Almanac

Template:Weapon

This template creates a detailed and consistent layout for non crafted weapons. It includes support for stats, positional bonuses, level/class requirements, acquisition info, additional stats, and a gallery.

Usage

{{Weapon
 | name = 
 | tooltip_image = 

 | is_soulbound = 
 | weapon_type  = 
 | durability   = 
 | damage_min   = 
 | damage_max   = 
 | dice_roll    = 
 | delay        = 
 | range        = 
 | angle        = 
 | OHAC         = 

 | stat1_name  = 
 | stat1_value = 
 | stat2_name  = 
 | stat2_value = 
 | stat3_name  = 
 | stat3_value = 
 | stat4_name  = 
 | stat4_value = 
 | stat5_name  = 
 | stat5_value = 
 | stat6_name  = 
 | stat6_value = 

 | front_value      = 
 | front_type       = 
 | front_percentage = 
 | side_value       = 
 | side_type        = 
 | side_percentage  = 
 | rear_value       = 
 | rear_type        = 
 | rear_percentage  = 

 | level_requirement  = 
 | class_requirement1 = 
 | class_requirement2 = 
 | class_requirement3 = 

 | how_to_acquire = 
 | sell_price     = 

 | model_image1 = 
 | model_image2 = 
 | model_image3 = 
}}

Parameters

General

name
Weapon name (defaults to the page name)
tooltip_image
Tooltip image filename (keep these cleanly cropped and with as solid/dark of a background as possible)

Stats

is_soulbound
Set to any value to display soulbound notice
weapon_type
Weapon classification (e.g., 1H Mace) — links to and categorizes under its type
durability
Maximum durability value
damage_min / damage_max
Base damage range
dice_roll
The hidden dice formula used to calculate damage (e.g., 2d4 + 20). Appears below the damage line in parentheses.
delay
Time between attacks in seconds (seconds unit add automatically)
range
Effective attack range
angle
Arc of attack (° symbol is added automatically)
OHAC
Off-Hand Ability Contribution (percentage symbol added automatically)

Additional Stats (Optional)

Supports up to 5 extra stats via:

stat1_name / stat1_value (→ stat6_name / stat6_value)
Stat name and its value
  • Each stat name will automatically:
 - Link to its category (e.g. Category:Penetration)
 - Categorize the weapon under that stat’s category

Positional Bonuses

front_value / front_type / front_percentage
side_value / side_type / side_percentage
rear_value / rear_type / rear_percentage

Displays as: `X [type] +Y% Positional`

Requirements

level_requirement
Minimum required level
class_requirement1–3
Up to three eligible classes (each links to its class page)

Acquisition & Sale

how_to_acquire
Where or how to get the weapon
sell_price
Vendor sell price (e.g., 15G 22S 11C)

Gallery

model_image1/2/3
Images of the armor model as seen in-game.

Notes

  • Weapon type is both linked to and categorized automatically.
  • Positional bonuses use dedicated percentage fields for clarity.
  • All unused fields are hidden automatically.
  • The gallery supports 1–3 images and displays only defined ones.
  • The `AdditionalStats` subtemplate is used to unify extra stat formatting across item types.

Example

See Sturdy Copper Mace for a working example.