Template:Ammo/doc: Difference between revisions
Appearance
No edit summary |
mNo edit summary |
||
| Line 14: | Line 14: | ||
| tooltip_image = AmmoPlaceholder.png | | tooltip_image = AmmoPlaceholder.png | ||
| is_soulbound = | |||
| ammo_type = | | ammo_type = | ||
| level_requirement = | | level_requirement = | ||
| Line 19: | Line 20: | ||
| class_requirement2 = | | class_requirement2 = | ||
| class_requirement3 = | | class_requirement3 = | ||
| stat1_name = | | stat1_name = | ||
| Line 54: | Line 54: | ||
| how_to_acquire = | | how_to_acquire = | ||
| | | sell_price = | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 79: | Line 79: | ||
;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. | ||
; | ;sell_price: Amount that a vendor will buy the ammo, individually. (e.g., 1 Gold 25 Silver 11 Copper). | ||
<div style="font-size: 1.5em; font-weight: bold; margin-top: 1em;">Categories</div> | <div style="font-size: 1.5em; font-weight: bold; margin-top: 1em;">Categories</div> | ||
Latest revision as of 08:37, 7 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
| is_soulbound =
| ammo_type =
| level_requirement =
| class_requirement1 =
| class_requirement2 =
| class_requirement3 =
| 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 =
| sell_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., Arrowhead, Bolthead, Shaft, Fletching).
- component1_material – component5_material
- One or more specific items that can be used for this component (e.g., Highlands Copper Ingot, Fair Dense Bone). Separate multiple items with commas. Each will be automatically linked to its page.
- component1_material_category – component5_material_category
- One or more material categories that can be used for this component (e.g., Copper Metal, Dense Bone). Separate multiple categories with commas. Each will link to its category page.
- how_to_acquire
- Where or how to obtain the ammo. Use comma-separated values. Supports pretty links using
Page::Labelformat. - sell_price
- Amount that a vendor will buy the ammo, individually. (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_materialandcomponentX_material_categoryare provided, the specific material will take priority.