Jump to content

Template:Ammo/doc: Difference between revisions

From Drifters Almanac
m Protected "Template:Ammo/doc" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
No edit summary
Line 76: Line 76:
;component1_name – component5_name: Display name for each component (e.g., Tip, Shaft, Fletching).
;component1_name – component5_name: Display name for each component (e.g., Tip, Shaft, Fletching).
;component1_material – component5_material: Specific item used for the component (e.g., Ash Shaft).
;component1_material – component5_material: Specific item used for the component (e.g., Ash Shaft).
;component1_material_category – component5_material_category: If the component accepts a material category (e.g., Pine Wood), enter the category name here (do not include "Category:").
;component1_material_category – component5_material_category: If the component accepts a material category (e.g., Pine Wood), enter the category name here.


;how_to_acquire: Where or how to obtain the ammo. Use comma-separated values. Supports pretty links using <code>Page::Label</code> format.
;how_to_acquire: Where or how to obtain the ammo. Use comma-separated values. Supports pretty links using <code>Page::Label</code> format.

Revision as of 10:10, 6 May 2025

Overview

This template is used to display information about ammunition, such as Arrows or Bolts. It supports both dropped and crafted ammo, including class restrictions, stats, crafting components, and acquisition methods.

Usage

Paste the following example into any page to use the template:

{{Ammo
| name = 
| tooltip_image = AmmoPlaceholder.png

| ammo_type = 
| level_requirement = 
| class_requirement1 = 
| class_requirement2 = 
| class_requirement3 = 
| is_soulbound = 

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

| crafting_profession = 
| recipe_page = 

| component1_name = 
| component1_material = 
| component1_material_category = 
| component2_name = 
| component2_material = 
| component2_material_category = 
| component3_name = 
| component3_material = 
| component3_material_category = 
| component4_name = 
| component4_material = 
| component4_material_category = 
| component5_name = 
| component5_material = 
| component5_material_category = 

| how_to_acquire = 
| sale_price = 
}}
Parameters

name
Optional. Display name of the ammo item (defaults to the page name if omitted).
tooltip_image
File name for the tooltip image (do not include the "File:" prefix).
ammo_type
The ammo category (e.g., Arrows, Bolts).
level_requirement
Minimum level required to equip or use.
class_requirement1 – class_requirement3
Class(es) that can equip the ammo.
is_soulbound
Set to any non-blank value to display "This item is Soulbound and cannot be traded."
stat1_name – stat6_name
Names of additional stats (e.g., Ranged Dmg, Accuracy).
stat1_value – stat6_value
Corresponding values for the above stats.
crafting_profession
The crafting profession responsible for this ammo (e.g., Woodworker).
recipe_page
Name of the recipe used to craft this ammo.
component1_name – component5_name
Display name for each component (e.g., Tip, Shaft, Fletching).
component1_material – component5_material
Specific item used for the component (e.g., Ash Shaft).
component1_material_category – component5_material_category
If the component accepts a material category (e.g., Pine Wood), enter the category name here.
how_to_acquire
Where or how to obtain the ammo. Use comma-separated values. Supports pretty links using Page::Label format.
sale_price
Sale price shown on the tooltip (e.g., 1 Gold 25 Silver 11 Copper).
Categories

Pages using this template are automatically added to:

  • Category:Ammo
  • Category:<ammo_type>
  • Category:Crafted Ammo (only if crafting info is present)
  • Category:<class_requirement> Ammo
Notes

  • All sections are optional and will only appear if data is provided.
  • Up to 6 stats and 5 components are supported.
  • If both componentX_material and componentX_material_category are provided, the specific material will take priority.