Template:Weapon page: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(200 intermediate revisions by 16 users not shown)
Line 1: Line 1:
<includeonly>[[File:{{{image}}}|frameless|right]]
<includeonly>{{#switch: {{{this is an example|}}}
| yes =
| #default = {{PageSeo
  | image = {{#if:{{{controller icon|}}}|{{{controller icon}}}|{{#if:{{{image|}}}|{{{image}}}|{{{icon|}}}}}}}
  | description = {{#if: {{{description|}}} | {{{description}}} | {{WeaponPage/SeoDescription
    | category = {{{category}}}
    | melee or ranged = {{{melee or ranged}}}
    | handedness = {{{handedness}}}
    | type = {{{type}}}
    | rarity = {{{rarity|}}}
    | enchantment = {{{enchantment|}}}
    | special = {{{special|}}}
    }} }}
  }}
}} __NOTOC__
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-{{#if: {{{rarity|}}}
| {{#replace: {{{rarity}}} | <nowiki> </nowiki> | }}
| common
}}"> {{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right|alt={{PAGENAME}} image]] | {{#if:{{{controller icon|}}} | [[File:{{{controller icon}}}|frameless|right|alt={{PAGENAME}} controller icon]] | {{#if:{{{icon|}}} | [[File:{{{icon}}}|frameless|right|alt={{PAGENAME}} icon]] | }} }} }}{{#if: {{{image|}}} || {{Main only|[[Category:Misc pages without images]]}} }}{{#if: {{{controller icon|}}} || {{Main only|[[Category:Item pages without controller icons]]}} }}{{#if: {{{icon|}}} || {{Main only|[[Category:Item pages without icons]]}} }}
 
{{#if: {{{description|}}}
| {{{description}}}
|
 
<!-- HERE BE DRAGONS!  The following monstrosity will auto-generate a nice, sensible introduction paragraph for ''any'' combination of parameters.  So, technically, you never have to provide descriptions for weapons, but for those with unique special properties you might want to do so anyway. -->
 
<strong>{{RarityColor | {{{rarity|}}} | {{{name | {{PAGENAME}} }}} }}</strong> is {{#if: {{{enchantment|}}} {{{rarity|}}} {{{special|}}}
|
  {{#if: {{{rarity|}}}
    | {{RarityWithArticle | {{{rarity}}} }}{{#if: {{{enchantment|}}} |,}}
    | a
  }}{{#switch: {{{enchantment|}}}
    | +1 = {{blank}} lightly enchanted (+1)
    | +2 = {{blank}} moderately enchanted (+2)
    | +3 = {{blank}} highly enchanted (+3)
    | +4 = {{blank}} very strongly enchanted (+4)
    | +5 = {{blank}} supremely enchanted (+5)
  }}{{#if: {{{special|}}}
    | {{blank}} special
  }}
|
  a mundane, nonmagical
}} variant of the [[{{{type}}}]] family of weapons. It is a [[Weapons|{{{category}}} {{{melee or ranged}}} weapon]] {{#switch: {{{handedness}}}
| one-handed = wielded in one hand
| versatile = that can be wielded in one hand, or with both hands for extra damage
| two-handed = that's wielded with both hands
}}. {{#if: {{{finesse|}}}
| As a [[finesse]] weapon, it can benefit from the wielder's Dexterity and not just their Strength.
}} {{#if: {{{light|}}}
| It's a [[light (weapon property)|light]] weapon that anyone can dual-wield without special training.
}} {{#if: {{{reach|}}}
| It gives the user [[extra reach]] in melee combat.
}} {{#if: {{{thrown|}}}
| Its design lends itself well to be [[thrown]] at enemies as a projectile.
}} {{#if: {{{can't dual wield|}}}
| Its design doesn't lend itself to be dual-wielded, even by those with special training in dual-wielding.
}}


{{#if:{{{description|}}}
|{{{description}}} <!-- HERE BE DRAGONS!  The following monstrosity will auto-generate a nice, sensible introduction paragraph for ''any'' combination of parameters.  So, technically, you never have to provide descriptions for weapons, but for those with unique specialties you might want to do so anyway. -->
|The {{#if:{{{enchantment|}}}{{{rarity|}}}{{{special|}}}||common}} {{RarityColor|{{{rarity|}}}|'''{{PAGENAME}}'''}} is {{#if:{{{enchantment|}}}{{{rarity|}}}{{{special|}}}||the mundane, nonmagical}} {{#if:{{{rarity|}}}|{{RarityWithArticle|{{{rarity}}}}}{{#if:{{{enchantment|}}}|,}}|{{#if:{{{enchantment|}}}{{{special|}}}|a}}}} {{#switch:{{{enchantment|}}}|+1 = lightly enchanted|+2 = moderately enchanted|+3 = highly enchanted|+4 = very strongly enchanted|+5 = supremely enchanted}} {{#if:{{{special|}}}|special}} variant of the [[{{{type}}}]] family of weapons.  It is a [[Weapons|{{{category}}} {{{melee or ranged}}} weapon]] {{#switch:{{{handedness}}}|one-handed = wielded in one hand|versatile = that can be wielded in one hand, or with both hands for extra damage|two-handed = that's wielded with both hands}}.  {{#if:{{{ammunition|}}}|It needs [[Ammunition (weapon property)|ammunition]] to shoot at enemies. ''(Note: This limitation is not yet implemented as of Early Access Patch 9.)''}} {{#if:{{{finesse|}}}|As a [[finesse]] weapon, it can benefit from the wielder's Dexterity and not just their Strength.}} {{#if:{{{heavy|}}}|It's a [[heavy (weapon property)|heavy]] weapon, which makes it difficult for small creatures to use effectively.}} {{#if:{{{light|}}}|It's a [[light (weapon property)|light]] weapon that anyone can dual-wield without special training.}} {{#if:{{{loading|}}}|It needs to be [[Loading|loaded]] before firing, which makes it unable to fire multiple times in a single turn of combat. ''(Note: This limitation is not yet implemented as of Early Access Patch 9.)''}} {{#if:{{{reach|}}}|It gives the user [[extra reach]] in melee combat.}} {{#if:{{{thrown|}}}|Its design lends itself well to be [[thrown]] at enemies as a projectile.}} {{#if:{{{can't dual wield|}}}|Its design doesn't lend itself to be dual-wielded, even by those with special training in dual-wielding.}}
}}
}}


{{quote|{{{quote|Missing quote ... imagine some nice flavor text here.}}}}}
{{#if: {{{quote|}}} | {{Description|{{{quote}}}}}}}
{{#if:{{{where to find|}}}|
== Where to Find ==


{{{where to find}}}
<h2> Properties </h2>
|}}
== Properties ==


{{#if:{{{versatile damage|}}}|
<div class="bg3wiki-property-list">
One-handed damage:
; {{#ifeq: {{{handedness}}} | versatile | One-handed damage | Damage }}
}}{{DamageInfo
: {{DamageInfo
| {{#sub: {{{damage}}} | 0 | {{#rpos: {{{damage}}} | }} }}
| {{{damage}}}
| {{#sub: {{{damage}}} | {{#expr: 1 + {{#rpos: {{{damage}}} | }} }} }}
| {{{damage type}}}
| modifier = {{#if:{{{finesse|}}}|finesse|{{{melee or ranged}}}}}
| modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}} | {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }}
}}{{#if:{{{versatile damage|}}}|
}} {{#ifeq: {{{handedness}}} | versatile |
Two-handed damage:
; Two-handed damage
{{DamageInfo
: {{DamageInfo
| {{{versatile damage}}}
    | {{{versatile damage}}}
| {{#sub: {{{damage}}} | {{#expr: 1 + {{#rpos: {{{damage}}} | }} }} }}
    | {{{damage type}}}
| modifier = {{#if:{{{finesse|}}}|finesse|{{{melee or ranged}}}}}
    | modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}}| {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }}
    }}
}} {{#if: {{{extra damage|}}} |
; Extra damage
: {{DamageInfo
    | {{#sub: {{{extra damage}}} | 0 | {{#rpos: {{{extra damage}}} | }} }}
    | {{#sub: {{{extra damage}}} | {{#expr: 1 + {{#rpos: {{{extra damage}}} | }} }} }}
    }}
}} {{#if: {{{extra damage 2|}}} |
: {{DamageInfo
    | {{#sub: {{{extra damage 2}}} | 0 | {{#rpos: {{{extra damage 2}}} | }} }}
    | {{#sub: {{{extra damage 2}}} | {{#expr: 1 + {{#rpos: {{{extra damage 2}}} | }} }} }}
    }}
}}
}}
}}{{#if:{{{extra damage|}}}|
; Details {{#if: {{{type|}}}
Extra damage:
| : {{WeaponType | {{{type}}} }}
{{DamageInfo
| [[Category:Weapon pages without a type]] [[Category:Articles with errors]]
| {{#sub: {{{extra damage}}} | 0 | {{#rpos: {{{extra damage}}} | }} }}
| {{#sub: {{{extra damage}}} | {{#expr: 1 + {{#rpos: {{{extra damage}}} | }} }} }}
}}
}}
}}
: {{Rarity | {{{rarity|common}}} | {{{rarity honour|}}} }}
 
: {{Enchantment | {{{enchantment|}}} }}
{{#if:{{{range m|}}}{{{range ft|}}}|
: {{#switch: {{{handedness}}}
* {{Range|m={{{range m}}}|ft={{{range ft}}}}}
|{{#if:{{{reach|}}}
|* {{Range|reach}}
|* {{Range|melee}}
}}}}
* {{WeaponType|{{{type}}}}}
* {{#switch:{{{handedness}}}
| one-handed = {{One-Handed}}
| one-handed = {{One-Handed}}
| two-handed = {{Two-Handed}}
| two-handed = {{Two-Handed}}
| versatile = {{Versatile}}
| versatile = {{Versatile}}
|}}{{#if:{{{ammunition|}}}|
}} {{#if: {{{finesse|}}} | : {{Finesse}}
* {{Ammunition}}
}} {{#if: {{{light|}}} | : {{Light}}
}}{{#if:{{{finesse|}}}|
}} {{#if: {{{reach|}}} | : {{Reach}}
* {{Finesse}}
}} {{#if: {{{thrown|}}} | : {{Thrown}}
}}{{#if:{{{heavy|}}}|
}} {{#if: {{{can't dual wield|}}} | : {{Can't Dual Wield}}
* {{Heavy}}
}} {{#if: {{{dippable|}}} | : {{Dippable}}
}}{{#if:{{{light|}}}|
}}
* {{Light}}
: {{#switch: {{{melee or ranged}}}
}}{{#if:{{{loading|}}}|
| melee = {{Range| {{#if: {{{reach|}}} | reach | melee}} }}
* {{Loading}}
| ranged =
}}{{#if:{{{reach|}}}|
  {{#switch: {{{range}}}
* {{Reach}}
  | normal = {{Range|ranged}}
}}{{#if:{{{thrown|}}}|
  | short = {{Range|short ranged}}
* {{Thrown}}
  | special
}}{{#if:{{{can't dual wield|}}}|
  | #default = {{Range| m = {{{range m}}} | ft = {{{range ft}}} }}
* {{Can't Dual Wield}}
  }}
}}{{#if:{{{dippable|}}}|
}}
* {{Dippable}}
: {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }}
: {{Price | {{{price}}} | {{{price honour|}}} }}
{{#if: {{{uid|}}} {{{uuid|}}} |
: {{SmallIcon|Ico stats.png}} {{#if: {{{uid|}}} | {{Uid|{{{uid}}}}} }} {{#if:{{{uuid|}}}|{{Uuid|{{{uuid}}}}} }}
}}
</div> {{#if: {{{passives|}}} {{{passives main hand|}}} {{{passives off hand|}}} {{{special|}}} | {{blank}}
 
<h3> Special </h3>
 
'''The holder of this item gains:'''
{{#if: {{{special|}}} | {{blank}}
 
{{{special|}}}
 
}}{{#if: {{{passives|}}} | {{blank}}
{{#invoke: ParseList | main | {{{passives}}} | useTemplate = Passive | type = none }}
 
}}{{#if: {{{passives main hand|}}} | {{blank}}
 
<em>Main Hand Only</em>
{{#invoke: ParseList | main | {{{passives main hand}}} | useTemplate = Passive | type = none }}
 
}}{{#if: {{{passives off hand|}}} | {{blank}}
 
<em>Off-Hand Only</em>
{{#invoke: ParseList | main | {{{passives off hand}}} | useTemplate = Passive | type = none }}
 
}}
}}
* {{Weight|kg={{{weight kg}}}|lb={{{weight lb}}}}}
* {{Price|{{{price}}}}}
* {{Rarity|{{{rarity|common}}}}}
{{#if:{{{main hand only|}}}|
'''Main hand only:'''


{{{main hand only}}}
}}{{#if: {{{weapon actions|}}} | {{blank}}
|}}{{#if:{{{special|}}}|
 
=== Special ===
<h3> Weapon actions </h3>
 
{{WeaponProficiencyUnlocks}}
{{#invoke: ParseList | main | {{{weapon actions}}} | useTemplate = WeaponAction | style = none }}
 
}}{{#if: {{{special weapon actions|}}} | {{blank}}
 
<h3> Special weapon actions </h3>


The holder of this item gains:
This weapon also grants the following:
{{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction | style = none }}


{{{special}}}
}}</div> {{#if: {{{condition|}}} | {{blank}}
|}}
== Actions ==


{{ProficiencyUnlocks}}
<h2> Condition: {{{condition}}} </h2>


{{{actions}}}
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Condition | {{{condition}}}
| save = {{{condition save|}}}
| duration = {{{condition duration|}}}
| dc = {{{condition dc|}}}
| radius m = {{{condition radius m|}}}
}}
{{main namespace only|{{Inflicts|{{{condition}}}|item|type=weapon|save={{{condition save|}}}|dc={{{condition dc|}}}|duration={{{condition duration|}}}}}}}
</div>{{#if: {{{condition2|}}} | {{blank}}


[[Category:Weapons]] [[Category:{{{category}}} Weapons]] [[Category:{{{type}}}]] [[Category:{{{rarity|common}}} Items]]</includeonly><noinclude><!--
<h2> Condition: {{{condition2}}} </h2>


    ==== Documentation follows ====
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Condition | {{{condition2}}}
| save = {{{condition2 save|}}}
| duration = {{{condition2 duration|}}}
| dc = {{{condition2 dc|}}}
| radius m = {{{condition2 radius m|}}}
}}
{{main namespace only|{{Inflicts|{{{condition2}}}|item|type=weapon|save={{{condition2 save|}}}|dc={{{condition2 dc|}}}|duration={{{condition2 duration|}}}}}}}
</div>


-->
  }}
This template generates entire pages for individual weapons in the game, such as [[Longsword]] (not to be confused with [[Longswords]]) or [[Worgfang]].
}}{{#if: {{{where to find|}}}{{{where to find2|}}}{{{where to find3|}}}{{{where to find4|}}}{{{where to find5|}}} | {{blank}}


Following is an example of usage with all possible template parameters shown.  The values are partly nonsensical: they describe a made up Longsword which for some reason deals an extra 1d4 Fire damage, is heavy (longswords normally aren't), and has the Tenacity attribute which normally blunt weapons like Mauls have.
<h2> Where to find </h2>


<pre>
<div class="bg3wiki-tooltip-box">
{{WeaponPage
{{#if: {{{where to find|}}}|
| <!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:WeaponPage -->
{{Where to find|{{{where to find}}}|{{{where to find location|}}}|{{{where to find x|}}}|{{{where to find y|}}}}}
| image = Longsword Icon.png
}}{{#if: {{{where to find2|}}}|
| description = Optional description.  Nonmagical and simple +1/+2/etc. will be auto-generated, so leave empty for those.  Others will also have a sensible default description generated, so strictly speaking you can always leave this empty, but you might still want to provide a short description of what makes the weapon noteworthy.
{{Where to find|{{{where to find2}}}|{{{where to find2 location|}}}|{{{where to find2 x|}}}|{{{where to find2 y|}}}}}
| quote = The in-game flavor text in the item's tooltip.
}}{{#if: {{{where to find3|}}}|
| category = martial <!-- martial or simple -->
{{Where to find|{{{where to find3}}}|{{{where to find3 location|}}}|{{{where to find3 x|}}}|{{{where to find3 y|}}}}}
| melee or ranged = melee <!-- melee or ranged, duh -->
}}{{#if: {{{where to find4|}}}|
| handedness = versatile <!-- one-handed, versatile, two-handed -->
{{Where to find|{{{where to find4}}}|{{{where to find4 location|}}}|{{{where to find4 x|}}}|{{{where to find4 y|}}}}}
| type = Longswords <!-- One of [[Category:Weapon Types]]. -->
}}{{#if: {{{where to find5|}}}|
| rarity = <!-- EMPTY for common, otherwise: uncommon, rare, veryrare, legendary -->
{{Where to find|{{{where to find5}}}|{{{where to find5 location|}}}|{{{where to find5 x|}}}|{{{where to find5 y|}}}}}
| enchantment = <!-- EMPTY for none, otherwise: +1, +2, +3, +4, +5 -->
}}{{#if: {{{where to find6|}}}|
| damage = 1d8 + 1 Slashing <!-- Must follow this exact strict format, with the "+ X" being optional. -->
{{Where to find|{{{where to find6}}}|{{{where to find6 location|}}}|{{{where to find6 x|}}}|{{{where to find6 y|}}}}}
| versatile damage = 1d10 + 2 <!-- Same as above, without the damage type. -->
| extra damage = 1d4 Fire <!-- Same as the regular damage, with optional "+ X". -->
| <!-- Here we have yes/no properties, which MUST BE EMPTY if you mean "no"!  Never actually type "no"! -->
| ammunition =
| finesse =
| heavy =
| light =
| loading =
| reach =
| thrown =
| can't dual wield =
| dippable = yes
| weight kg = 1.35
| weight lb = 2.7
| price = 75
| main hand only =
* {{Tenacity}}
| special =
* '''Super Cool Ability:''' Once per [[Long Rest]] you can use this awesome ability of this weapon.
| actions =
* {{Pommel Strike}}
* {{Lacerate}}
* {{Rush Attack}}
}}
}}
</pre>
</div> }} {{#if: {{{notes|}}} | {{blank}}


Note that the template even adds the page to the correct categories.  And for the same reason, it shouldn't be invoked here for the purpose of showing how the results look; that would result in this template page being added to the categories to which the weapon type pages are added.
<h2> Notes </h2>


[[Category:Weapon Page Templates]]
<div class="bg3wiki-tooltip-box">
</noinclude>
{{{notes}}}
</div>
}} {{#if: {{{bugs|}}} | {{blank}}
 
<h2> Bugs </h2>
 
<div class="bg3wiki-tooltip-box">
{{{bugs}}}
{{Main namespace only|[[Category:Bugs]]}}
</div>
}}
{{Main namespace only|[[Category:Equipment]]
[[Category:Weapons]]
{{#switch: {{lc:{{{melee or ranged|}}}}}
| melee = [[Category:Melee weapons]]
| ranged = [[Category:Ranged weapons]]
| #default = }}
{{#switch: {{lc:{{{category|}}}}}
| martial = [[Category:Martial weapons]]
| simple = [[Category:Simple weapons]]
| #default = }}
{{#if: {{{type|}}} | [[Category:{{{type}}}]]}}
{{#switch: {{lc:{{{rarity|}}}}}
| common = [[Category:Common items]]
| uncommon = [[Category:Uncommon items]]
| rare = [[Category:Rare items]]
| very rare = [[Category:Very rare items]]
| legendary = [[Category:Legendary items]]
| story = [[Category:Story items]]
| #default = [[Category:Common items]]}}{{ItemIcon Insert
|icon={{{icon|}}}
|image={{{controller icon|}}}
|uid={{{uid|}}}
|rarity={{{rarity|common}}}
}}{{#cargo_store: _table = weapons
| name = {{{name | {{#titleparts: {{PAGENAME}} }} }}}
| uid = {{{uid|}}}
| legacy = {{#var:legacy|}}
| rarity = {{IfEmpty | {{{rarity|}}} | common}}
| rarity_order = {{#switch: {{{rarity|}}}
  | = 0
  | uncommon = 1
  | rare = 2
  | very rare = 3
  | legendary = 4
  | story = 5
  }}
| finesse = {{IfEmpty | {{{finesse|}}} | no}}
| heavy = {{IfEmpty | {{{heavy|}}} | no}}
| light = {{IfEmpty | {{{light|}}} | no}}
| reach = {{IfEmpty | {{{reach|}}} | no}}
| thrown = {{IfEmpty | {{{thrown|}}} | no}}
| cannot_dual_wield = {{IfEmpty | {{{can't dual wield|}}} | no}}
| dippable = {{IfEmpty | {{{dippable |}}} | no}}
| range_m = {{#switch: {{{melee or ranged}}}
  | melee = {{#if: {{{reach|}}} | 1.5 | 2.5 }}
  | ranged = {{#switch: {{{range}}}
    | normal = 18
    | short = 15
    | special
    | #default = {{{range m}}}
    }}
  }}
| range_ft = {{#switch: {{{melee or ranged}}}
  | melee = {{#if: {{{reach|}}} | 5 | 8 }}
  | ranged = {{#switch: {{{range}}}
    | normal = 60
    | short = 50
    | special
    | #default = {{{range ft}}}
    }}
  }}
| extra_damage = {{#if: {{{extra damage|}}}
  | {{#sub: {{{extra damage}}} | 0 | {{#rpos: {{{extra damage}}} | }} }}
  }}
| extra_damage_type = {{#if: {{{extra damage|}}}
  | {{#sub: {{{extra damage}}} | {{#expr: 1 + {{#rpos: {{{extra damage}}} | }} }} }}
  }}
| extra_damage_2 = {{#if: {{{extra damage 2|}}}
  | {{#sub: {{{extra damage 2}}} | 0 | {{#rpos: {{{extra damage 2}}} | }} }}
  }}
| extra_damage_2_type = {{#if: {{{extra damage 2|}}}
  | {{#sub: {{{extra damage 2}}} | {{#expr: 1 + {{#rpos: {{{extra damage 2}}} | }} }} }}
  }}
| weapon_passives = {{{passives|}}}
}}
}}</includeonly><noinclude>{{documentation}}
{{#cargo_declare: _table = weapons
| name = String (mandatory)
| uid = String
| legacy = String(allowed values = inaccessible, unobtainable)
| image = File
| controller_icon = File
| icon = File
| description = Wikitext
| quote = Wikitext
| category = String (allowed values = simple, martial)
| handedness = String (allowed values = one-handed, two-handed, versatile)
| melee_or_ranged = String (allowed values = melee, ranged)
| type = Page
| rarity = String
| rarity_order = Integer
| enchantment = String
| damage = String
| damage_type = String (allowed values = Piercing, Slashing, Bludgeoning)
| versatile_damage = String
| extra_damage = String
| extra_damage_type = String
| extra_damage_2 = String
| extra_damage_2_type = String
| range_m = String
| range_ft = String
| finesse = Boolean
| heavy = Boolean
| light = Boolean
| reach = Boolean
| thrown = Boolean
| cannot_dual_wield = Boolean
| dippable = Boolean
| weight_kg = String
| weight_lb = String
| price = String
| weapon_passives = List (,) of String
| passives_main_hand = List (,) of String
| passives_off_hand = List (,) of String
| weapon_actions = List (,) of String
| special_weapon_actions = List (,) of String
| special = Wikitext
}}</noinclude>

Latest revision as of 11:16, 10 November 2024

Template documentation

This template generates entire pages for individual weapons in the game, such as Longsword (not to be confused with Longswords) or Worgfang. Note that the template adds the page to the correct categories automatically.

Following is a blank starting point for using this template that you can copy-paste. You can also view the source of this page and copy-paste one of the actual examples further below.

{{WeaponPage
<!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:WeaponPage -->
| name =
| image =
| controller icon =
| icon = 
| description =
| quote =
| category =
| melee or ranged =
| handedness =
| type =
| rarity =
| enchantment =
| damage =
| damage type =
| versatile damage =
| extra damage =
| extra damage 2 =
| range =
| range m =
| range ft =
| finesse =
| heavy =
| light =
| reach =
| thrown =
| can't dual wield =
| dippable =
| weight kg =
| weight lb =
| price =
| uid =
| uuid =
| passives = 
| passives main hand =
| passives off hand =
| special =
| weapon actions =
| special weapon actions = 
| condition =
| condition duration = 
| condition save =
| condition dc = 
| condition radius m =
| condition2 =
| condition2 duration = 
| condition2 save =
| condition2 dc =
| condition2 radius m = 
| where to find =
| where to find location =
| where to find x =
| where to find y =
| where to find2 =
| where to find2 location =
| where to find2 x =
| where to find2 y =
| where to find3 =
| where to find3 location =
| where to find3 x =
| where to find3 y =
| where to find4 =
| where to find4 location =
| where to find4 x =
| where to find4 y =
| where to find5 =
| where to find5 location =
| where to find5 x =
| where to find5 y =
| notes = 
| bugs =
}}

Following is an example of usage with all possible template parameters shown and explained with HTML comments. This describes a made up Longsword which for some reason deals an extra 1d4 Fire damage and is Heavy (longswords normally aren't). If you're ever unsure what to type, simply leave the parameter empty.

Please don't copy-paste this example code into any actual page you create. Prefer copy-pasting the completely blank template above.

{{WeaponPage

<!-- The name of the weapon as it is displayed in game, or the page name if not specified -->
| name = 

<!-- A high-res image of the item. -->
| image = Longsword Faded.png

<!-- A smaller, unfaded image of the item, used for the controller interface. Falls back to the value of "image" if not provided -->
| controller icon = Longsword Unfaded.png

<!-- An even smaller image of the item, to be used as an icon. Falls back to the value of "controller icon" if not provided -->
| icon = Longsword Unfaded Icon.png

<!-- Optional description.  Nonmagical and +1/+2/etc. will be auto-generated, so leave empty for those.  Others will also have a sensible default description generated, so strictly speaking you can always leave this empty, but for weapons with special properties, you might want to instead provide a short description of what makes the weapon noteworthy. -->
| description = 

<!-- In-game tooltip quote. -->
| quote = The in-game flavor text in the item's tooltip.

<!-- "martial" or "simple" -->
| category = martial

<!-- "melee" or "ranged" -->
| melee or ranged = melee

<!-- "one-handed", "versatile", or "two-handed" -->
| handedness = versatile

<!-- One of [[Category:Weapon Types]]. Always plural! -->
| type = Longswords

<!-- Leave EMPTY for common, otherwise: uncommon, rare, very rare, legendary, story -->
| rarity =

<!-- Leave EMPTY for none, otherwise: +1, +2, +3, +4, +5 -->
| enchantment =

<!-- Must follow the strict format "XdY + Z", with the "+ Z" only needed if the weapon has an enchantment. -->
| damage = 1d8 + 1

<!-- Accepts any of [[Damage Types]], but usually: Slashing, Piercing, or Bludgeoning -->
| damage type = Slashing

<!-- Same format as regular damage, or leave EMPTY if this isn't a Versatile weapon. -->
| versatile damage = 1d10 + 2

<!-- Same format as regular damage, but with damage type directly on the same line. -->
| extra damage = 1d4 Fire

<!-- Same format as regular damage, but with damage type directly on the same line. -->
| extra damage 2 = 1d6 Acid

<!-- Leave EMPTY if melee, otherwise this can be "normal", "short" (e.g. Hand Crossbow), or "special" -->
| range =

<!-- Leave EMPTY if "range" is NOT "special", otherwise provide the range in meters and in feet. -->
| range m =
| range ft =

<!-- Following are yes/no properties, which MUST BE EMPTY if you mean "no"!  Never actually type "no"! -->
| finesse =
| heavy =
| light =
| reach =
| thrown =
| can't dual wield =
| dippable = yes

<!-- The weight in kg and in lb. -->
| weight kg = 1.35
| weight lb = 2.7

<!-- The price in gp as shown in the normal tooltip (NOT while buying or selling). -->
| price = 75

<!-- The uid for the item, usually in format "MAG_SomeDescription_Something".  -->
| uid = OBJ_Longsword
<!-- The uid or Root Template for the item. -->
| uuid =  3d99b0ae-4e96-438a-8029-cce11109f415

<!-- Passives you get when equipped. -->
| passives = 

<!-- Passives you get when equipped only in the main hand. -->
| passives main hand = 

<!-- Passives you get when equipped only in the off-hand. -->
| passives off hand = 

<!-- Actions you get when you have proficiency and wield the weapon in your main-hand. -->
| weapon actions = Pommel Strike, Lacerate, Rush Attack

<!-- Special actions that are found on specific weapons. -->
| special weapon actions = 

<!-- Conditions that this weapon may or may not inflict on every hit. -->
| condition = Dazed
| condition duration = 10
| condition save = WIS
| condition dc = 13
| condition radius m = 3
| condition2 = Prone
| condition2 duration = 1
| condition2 save =
| condition2 dc = 
| condition2 radius m = 

<!-- List of other special features or abilities granted by the weapon. -->
| special =
* '''Super Cool Ability:''' Once per [[Long Rest]] you can use this awesome ability of this weapon.

<!-- Describe where and how to obtain the weapon, if it's a special one. -->
| where to find =
| where to find location =
| where to find x =
| where to find y =
| where to find2 =
| where to find2 location =
| where to find2 x =
| where to find2 y =
| where to find3 =
| where to find3 location =
| where to find3 x =
| where to find3 y =
| where to find4 =
| where to find4 location =
| where to find4 x =
| where to find4 y =
| where to find5 =
| where to find5 location =
| where to find5 x =
| where to find5 y =

}}

Live examples of this template's usage follow. Feel free to view this page's source and copy-paste one of them as a starting point.

Longsword

Weapon page image

Weapon page is a special variant of the Longswords family of weapons. It is a martial melee weapon that can be wielded in one hand, or with both hands for extra damage.

Description Icon.png

The in-game flavor text in the item's tooltip.

Properties

One-handed damage
D8 Slashing.png 1d8 + 1 (2~9) + Strength modifier Damage TypesSlashing
Two-handed damage
D10 Slashing.png 1d10 + 2 (3~12) + Strength modifier Damage TypesSlashing
Extra damage
D4 Fire.png 1d4 (1~4) Damage TypesFire
D6 Acid.png 1d6 (1~6) Damage TypesAcid
Details
Longswords Longswords
Rarity: Common / UncommonHHonour
Enchantment: None
 Versatile
Dippable Dippable
 Melee: 1.5 m / 5  ft
 Weight: 1.35 kg / 2.7 lb
Price: 75 gp / 500 gpHHonour
UID OBJ_Longsword
UUID 3d99b0ae-4e96-438a-8029-cce11109f415

Special

The holder of this item gains:

  • Super Cool Ability: Once per Long Rest you can use this awesome ability of this weapon.
Chilling Counter
When a creature misses you with an attack, it becomes Chilled Chilled for 2 turns.

Weapon actions

Proficiency Icon.png If you have proficiency, equip in main hand to gain:

Pommel Strike Pommel Strike ()

Make a non-lethal attack against an enemy and possibly Daze Daze them.

Lacerate Lacerate ()

Slash at your target's vital points to make it Bleed Bleed.

Rush Attack Rush Attack ()

Charge forward and attack the first enemy in your way, possibly pushing them Off Balance Off Balance.

Special weapon actions

This weapon also grants the following:

Grand Slam Grand Slam ()

Slam your weapon into the ground, dealing additional Damage TypesThunder damage equal to your proficiency bonus, thunderously impacting nearby foes and possibly pushing them away.

Mellow Harmony Mellow Harmony ()

You make a DC 15 Performance check, success granting all your melee weapon attacks additional damage equal to your Charisma Modifier (minimum 1 additional damage).

Condition: Bless

Bless Bless

Duration: 1 turn

Condition: Burning

Burning Burning

Duration: 3 turns

  • Takes 1d4Damage TypesFire damage per turn.
  • Can be removed with the Help Help action, using a Healing Potion or gaining Wet Wet.
  • Immune from if Wet Wet.
  • Dip Dip action can be used on Burning characters and/or objects.

Where to find

  • This is a made-up weapon. You cannot obtain it anywhere in the game.


Dagger

Weapon page image

Weapon page is a special variant of the Longswords family of weapons. It is a simple melee weapon wielded in one hand. As a finesse weapon, it can benefit from the wielder's Dexterity and not just their Strength. It's a light weapon that anyone can dual-wield without special training. Its design lends itself well to be thrown at enemies as a projectile.

Description Icon.png

The in-game flavor text in the item's tooltip.

Properties

Damage
Details
Longswords Longswords
Rarity: Common
Enchantment: None
 One-Handed
Finesse Finesse
Light (weapon property) Light
Thrown Thrown
Dippable Dippable
 Melee: 1.5 m / 5  ft
 Weight: 1.35 kg / 2.7 lb
Price: 75 gp

Special

The holder of this item gains:

  • Super Cool Ability: Once per Long Rest you can use this awesome ability of this weapon.

Main Hand Only

Chilling Counter
When a creature misses you with an attack, it becomes Chilled Chilled for 2 turns.

Off-Hand Only

Dazing Echo
When a creature with Reverberation Reverberation deals damage to the wearer, the creature needs to make a Constitution saving throw or become Dazed Dazed.

Weapon actions

Proficiency Icon.png If you have proficiency, equip in main hand to gain:

Piercing Strike Piercing Strike ()

Stab an enemy and possibly inflict Gaping Wounds Gaping Wounds.

Where to find

  • This is a made-up weapon. You cannot obtain it anywhere in the game.

Template data

This template generates entire pages for individual weapons in the game. (For other Equipment, use Template:EquipmentPage. For Consumables and other miscellaneous items, use Template:MiscItemPage.)

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

The name of the item -- can be left out to use the page name automatically.

Example
Merregon Halberd
Stringsuggested
imageimage

The filename of the image/icon associated with this item.

Example
Merregon Halberd Icon.png
Filerequired
controller iconcontroller icon

The unfaded controller icon of this item. Defaults to the value of image= if not provided.

Filesuggested
iconicon

The icon of this item. Defaults to the value of controller icon= if not provided.

Filerequired
categorycategory

The weapon's overall proficiency category (martial or simple)

Suggested values
martial simple
Stringrequired
descriptiondescription

Optional, BRIEF description of what is notable about this weapon. If left empty, a basic description will be auto-generated for you based on the other information you've entered in the template.

Example
{{uncommon|Longsword of Slash-Slash}} is an uncommon [[Longsword]] that allows the wielder to slash a lot.
Contentsuggested
quotequote

The in-game flavour text in the weapon's tooltip.

Stringsuggested
typetype

The weapon's specific type. Always plural.

Suggested values
Battleaxes Clubs Daggers Glaives Greataxes Greatclubs Greatswords Halberds Hand Crossbows Handaxes Heavy Crossbows Javelins Light Crossbows Light Hammers Longbows Longswords Maces Mauls Morningstars Pikes Quarterstaves Rapiers Scimitars Shortbows Shortswords Sickles Spears Tridents War Picks Warhammers
Example
Longswords
Stringrequired
rarityrarity

The rarity level of the weapon (common, uncommon, rare, very rare, legendary, story)

Suggested values
common uncommon rare very rare legendary story
Example
uncommon
Stringrequired
melee or rangedmelee or ranged

no description

Suggested values
melee ranged
Example
melee
Stringrequired
handednesshandedness

no description

Suggested values
one-handed versatile two-handed
Example
one-handed
Stringrequired
damagedamage

The damage of the weapon (the one-handed damage, in the case of Versatile weapons). Must follow the strict format XdY + Z, with the "+ Z" only needed if the weapon has an enchantment.

Example
1d8 + 1
Stringrequired
versatile damageversatile damage

Same format as regular damage. Leave EMPTY if this weapon is not Versatile.

Example
1d10 + 1
Stringsuggested
damage typedamage type

The damage type of the weapon

Suggested values
Slashing Bludgeoning Piercing
Example
Slashing
Stringrequired
extra damageextra damage

Any extra damage granted by this weapon. Leave EMPTY if this weapon does not receive a damage bonus aside from its enchantment. Otherwise, same format as regular damage, but with damage type directly on the same line.

Example
1d4 Fire
Stringsuggested
extra damage 2extra damage 2

Additional extra damage, like if the weapon deals and extra 1d4 Fire AND an extra 1d4 Acid or something.

Example
1d4 Fire
Stringsuggested
enchantmentenchantment

The value of the enchantment on the weapon. Leave blank if no enchantment.

Suggested values
+1 +2 +3 +4 +5
Example
+1
Stringsuggested
rangerange

This is for ranged weapons only. Leave EMPTY if melee; otherwise choose one of the suggested values. "short" in this context refers to the shorter range of Hand Crossbows.

Suggested values
normal short special
Stringsuggested
special range mrange m

Leave EMPTY unless range is "special." Special range of the weapon in meters.

Example
18
Numbersuggested
special range ftrange ft

Leave EMPTY unless range is "special." Special range of the weapon in feet.

Example
60
Numbersuggested
finessefinesse

Does this weapon have the Finesse property? (Leave BLANK if no!)

Suggested values
yes
Stringsuggested
heavyheavy

Does this weapon have the Heavy property? (Leave BLANK if no!)

Suggested values
yes
Example
yes
Stringsuggested
lightlight

Does this weapon have the Light property? (Leave BLANK if no!)

Suggested values
yes
Example
yes
Stringsuggested
reachreach

Does this weapon have the Extra Reach property? (Leave BLANK if no!)

Suggested values
yes
Example
yes
Stringsuggested
thrownthrown

Does this weapon have the Thrown property? (Leave BLANK if no!)

Suggested values
yes
Example
yes
Stringsuggested
can't dual wieldcan't dual wield

Does this weapon have the Can't Dual Wield property? (Leave BLANK if no!)

Suggested values
yes
Example
yes
Stringsuggested
dippabledippable

Does this weapon have the Dippable property? (Leave BLANK if no!)

Suggested values
yes
Default
yes
Example
yes
Stringsuggested
weight kgweight kg

Weight of the weapon in kilograms

Example
1.35
Numberrequired
weight lbweight lb

Weight of the weapon in pounds

Example
2.7
Numberrequired
priceprice

Price/value of the item. When two values are listed on the tooltip, use the crossed out "true" value, not the adjusted buy/sell price.

Example
75
Numberrequired
uiduid

Unique id for the item. Often in format OBJ_Blabla_Whatever

Unknownoptional
uuiduuid

UUID or Root Template for the item. In a uuid format like " 3d99b0ae-4e96-438a-8029-cce11109f415"

Unknownoptional
passivespassives

Any passive features granted to the wielder of the weapon. Separate multiple special features with a comma.

Example
Contentsuggested
passives main handpassives main hand

Any passive features granted to the wielder of the weapon while in the main hand only. Separate multiple special features with a comma.

Example
Contentsuggested
passives off handpassives off hand

Any passive features granted to the wielder of the weapon while in the off-hand only. Separate multiple special features with a comma.

Example
Contentsuggested
specialspecial

Any special features granted to the wielder of the weapon. Separate multiple special features with bullets.

Example
* '''Super Cool Ability:''' Cast [[Awesome Spell]] once per [[Long Rest]].
Contentsuggested
weapon actionsweapon actions

List of Weapon Actions gained by wielding this weapon in the main hand. Be sure to separate multiple actions with a comma.

Example
Pommel Strike, Lacerate
Contentsuggested
special weapon actionsspecial weapon actions

List of Weapon Actions gained by wielding this weapon in the main hand. Be sure to separate multiple actions with a comma.

Example
Hellflame Cleave, Moonlight Butterflies
Contentsuggested
this is an examplethis is an example

no description

Unknownoptional
seo descriptionseo description

no description

Unknownoptional
modifiermodifier

Specify the modifier for the weapon's damage. This only needs to be specified in special cases where the weapon does not use the typical damage modifier for its class.

Example
Strength, spell, none
Contentoptional
rarity honourrarity honour

The rarity in Honour Mode, if it is different

Unknownoptional
price honourprice honour

The price in Honour Mode, if it is different.

Unknownoptional
conditioncondition

no description

Unknownoptional
condition savecondition save

no description

Unknownoptional
condition durationcondition duration

no description

Unknownoptional
condition dccondition dc

no description

Unknownoptional
condition radius mcondition radius m

no description

Unknownoptional
condition2condition2

no description

Unknownoptional
condition2 savecondition2 save

no description

Unknownoptional
condition2 durationcondition2 duration

no description

Unknownoptional
condition2 dccondition2 dc

no description

Unknownoptional
condition2 radius mcondition2 radius m

no description

Unknownoptional
where to findwhere to find

Describe where and how to obtain the item.

Example
Found on a table.
Contentsuggested
where to find locationwhere to find location

The map name of the item. Should match a location page.

Example
Underdark
Contentsuggested
where to find xwhere to find x

The x coordinate of the item in the location.

Example
53
Contentsuggested
where to find ywhere to find y

The y coordinate of the item in the location

Example
Underdark
Contentsuggested
where to find2where to find2

no description

Unknownoptional
where to find2 locationwhere to find2 location

no description

Unknownoptional
where to find2 xwhere to find2 x

no description

Unknownoptional
where to find2 ywhere to find2 y

no description

Unknownoptional
where to find3where to find3

no description

Unknownoptional
where to find3 locationwhere to find3 location

no description

Unknownoptional
where to find3 xwhere to find3 x

no description

Unknownoptional
where to find3 ywhere to find3 y

no description

Unknownoptional
where to find4where to find4

no description

Unknownoptional
where to find4 locationwhere to find4 location

no description

Unknownoptional
where to find4 xwhere to find4 x

no description

Unknownoptional
where to find4 ywhere to find4 y

no description

Unknownoptional
where to find5where to find5

no description

Unknownoptional
where to find5 locationwhere to find5 location

no description

Unknownoptional
where to find5 xwhere to find5 x

no description

Unknownoptional
where to find5 ywhere to find5 y

no description

Unknownoptional
notesnotes

no description

Unknownoptional
bugsbugs

no description

Unknownoptional

This template defines the table "weapons". View table.