Template:Weapon/doc: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{ | {{Weapon | ||
| name = | | name = | ||
| tooltip_image = | | tooltip_image = | ||
| weapon_type = | | weapon_type = | ||
| durability = | | durability = | ||
| Line 18: | Line 16: | ||
| angle = | | angle = | ||
| OHAC = | | OHAC = | ||
| stat1_name = | | stat1_name = | ||
| stat1_value = | | stat1_value = | ||
| Line 30: | Line 29: | ||
| stat6_name = | | stat6_name = | ||
| stat6_value = | | stat6_value = | ||
| front_value = | | front_value = | ||
| front_type = | | front_type = | ||
| Line 39: | Line 39: | ||
| rear_type = | | rear_type = | ||
| rear_percentage = | | rear_percentage = | ||
| level_requirement = | | level_requirement = | ||
| class_requirement1 = | | class_requirement1 = | ||
| class_requirement2 = | | class_requirement2 = | ||
| class_requirement3 = | | class_requirement3 = | ||
| how_to_acquire = | | how_to_acquire = | ||
| is_soulbound = | | is_soulbound = | ||
| sale_price = | | sale_price = | ||
| model_image1 = | |||
| model_image2 = | |||
| model_image3 = | |||
}} | }} | ||
</pre> | </pre> | ||
Revision as of 16:54, 24 April 2025
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 =
| weapon_type =
| durability =
| damage_min =
| damage_max =
| 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 =
| is_soulbound =
| sale_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)
- model_image1–3
- Up to three additional model images
Stats
- 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
- 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
- is_soulbound
- Set to any value to display soulbound notice
- sale_price
- Vendor sale price (e.g., 15G 22S 11C)
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.