Template:Weapon page: Difference between revisions

Jump to navigation Jump to search
m
Added table list
No edit summary
m (Added table list)
 
(129 intermediate revisions by 14 users not shown)
Line 1: Line 1:
<includeonly>[[File:{{{image}}}|frameless|right]]
<includeonly>{{#switch: {{{this is an example|}}}
{{#seo:
| yes =
| type = article
| #default = {{PageSeo
| image = {{{image}}}
  | image = {{#if:{{{controller icon|}}}|{{{controller icon}}}|{{#if:{{{image|}}}|{{{image}}}|{{{icon|}}}}}}}
| description = {{WeaponPage/SeoDescription
  | description = {{{description|{{WeaponPage/SeoDescription
  | category = {{{category}}}
    | category = {{{category}}}
  | melee or ranged = {{{melee or ranged}}}
    | melee or ranged = {{{melee or ranged}}}
  | handedness = {{{handedness}}}
    | handedness = {{{handedness}}}
  | type = {{{type}}}
    | type = {{{type}}}
  | rarity = {{{rarity|}}}
    | rarity = {{{rarity|}}}
  | enchantment = {{{enchantment|}}}
    | enchantment = {{{enchantment|}}}
  | special = {{{special|}}}
    | 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|}}}
{{#if: {{{description|}}}
| {{{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. -->
|
{{RarityColor | {{{rarity|}}} | '''{{PAGENAME}}''' }}
 
is
<!-- 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. -->
{{#if: {{{enchantment|}}} {{{rarity|}}} {{{special|}}}
 
<strong>{{RarityColor | {{{rarity|}}} | {{{name | {{PAGENAME}} }}} }}</strong> is {{#if: {{{enchantment|}}} {{{rarity|}}} {{{special|}}}
|
|
   {{#if: {{{rarity|}}}
   {{#if: {{{rarity|}}}
     | {{RarityWithArticle | {{{rarity}}} }}{{#if: {{{enchantment|}}} |,}}
     | {{RarityWithArticle | {{{rarity}}} }}{{#if: {{{enchantment|}}} |,}}
     | a
     | a
   }} {{#switch: {{{enchantment|}}}
   }}{{#switch: {{{enchantment|}}}
     | +1 = lightly enchanted (+1)
     | +1 = {{blank}} lightly enchanted (+1)
     | +2 = moderately enchanted (+2)
     | +2 = {{blank}} moderately enchanted (+2)
     | +3 = highly enchanted (+3)
     | +3 = {{blank}} highly enchanted (+3)
     | +4 = very strongly enchanted (+4)
     | +4 = {{blank}} very strongly enchanted (+4)
     | +5 = supremely enchanted (+5)
     | +5 = {{blank}} supremely enchanted (+5)
   }} {{#if: {{{special|}}}
   }}{{#if: {{{special|}}}
     | special
     | {{blank}} special
   }}
   }}
|
|
   a mundane, nonmagical
   a mundane, nonmagical
}}
}} variant of the [[{{{type}}}]] family of weapons. It is a [[Weapons|{{{category}}} {{{melee or ranged}}} weapon]] {{#switch: {{{handedness}}}
variant of the [[{{{type}}}]] family of weapons.
It is a [[Weapons|{{{category}}} {{{melee or ranged}}} weapon]]
{{#switch: {{{handedness}}}
| one-handed = wielded in one hand
| one-handed = wielded in one hand
| versatile = that can be wielded in one hand, or with both hands for extra damage
| versatile = that can be wielded in one hand, or with both hands for extra damage
| two-handed = that's wielded with both hands
| two-handed = that's wielded with both hands
}}. {{#if: {{{ammunition|}}}
}}. {{#if: {{{finesse|}}}
| It needs [[Ammunition (weapon property)|ammunition]] to shoot at enemies.*
}} {{#if: {{{finesse|}}}
| As a [[finesse]] weapon, it can benefit from the wielder's Dexterity and not just their Strength.
| 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|}}}
}} {{#if: {{{light|}}}
| It's a [[light (weapon property)|light]] weapon that anyone can dual-wield without special training.
| 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 means it cannot be used for multiple attacks with a single action.*
}} {{#if: {{{reach|}}}
}} {{#if: {{{reach|}}}
| It gives the user [[extra reach]] in melee combat.
| It gives the user [[extra reach]] in melee combat.
Line 57: Line 55:
}} {{#if: {{{can't dual wield|}}}
}} {{#if: {{{can't dual wield|}}}
| Its design doesn't lend itself to be dual-wielded, even by those with special training in dual-wielding.
| Its design doesn't lend itself to be dual-wielded, even by those with special training in dual-wielding.
}} {{#if: {{{ammunition|}}} {{{heavy|}}} {{{loading|}}}
| <br><br> ''&lowast; This limitation is not implemented in Early Access.''
}}
}}
}}
}}


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


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


{{#ifeq: {{{handedness}}} | versatile |
<div class="bg3wiki-property-list">
One-handed damage:
; {{#ifeq: {{{handedness}}} | versatile | One-handed damage | Damage }}
}}{{DamageInfo
: {{DamageInfo
| {{{damage}}}
| {{{damage}}}
| {{{damage type}}}
| {{{damage type}}}
| modifier = {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }}
| modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}} | {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }}
}}{{#ifeq: {{{handedness}}} | versatile |
}} {{#ifeq: {{{handedness}}} | versatile |
Two-handed damage:
; Two-handed damage
{{DamageInfo
: {{DamageInfo
| {{{versatile damage}}}
    | {{{versatile damage}}}
| {{{damage type}}}
    | {{{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 <!-- The following isn't used for regular damage because we want to be able to query weapons by damage type. -->
| [[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|}}} }}
* {{WeaponType | {{{type}}} }}
: {{#switch: {{{handedness}}}
* {{Rarity | {{{rarity|common}}} }}
* {{Enchantment | {{{enchantment|}}} }}
* {{#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}}
}} {{#if: {{{loading|}}} |
* {{Loading}}
}} {{#if: {{{reach|}}} |
* {{Reach}}
}} {{#if: {{{thrown|}}} |
* {{Thrown}}
}} {{#if: {{{can't dual wield|}}} |
* {{Can't Dual Wield}}
}} {{#if: {{{dippable|}}} |
* {{Dippable}}
}}
}}
* {{#switch: {{{melee or ranged}}}
: {{#switch: {{{melee or ranged}}}
| melee = {{Range| {{#if: {{{reach|}}} | reach | melee}} }}
| melee = {{Range| {{#if: {{{reach|}}} | reach | melee}} }}
| ranged =
| ranged =
Line 127: Line 115:
   }}
   }}
}}
}}
* {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }}
: {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }}
* {{Price | {{{price}}} }}
: {{Price | {{{price}}} | {{{price honour|}}} }}
{{#if: {{{special|}}} |
{{#if: {{{uid|}}} {{{uuid|}}} |
=== Special ===
: {{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: {{{passives|}}} | {{blank}}
 
{{Table list|{{#invoke: ParseList | main | {{{passives}}} | useTemplate = Passive | type = htmlList }}}}
 
}}{{#if: {{{special|}}} | {{blank}}
 
{{{special|}}}
 
}}{{#if: {{{passives main hand|}}} | {{blank}}
 
'''Main Hand Only:'''
 
{{Table list|{{#invoke: ParseList | main | {{{passives main hand}}} | useTemplate = Passive | type = htmlList }}}}
 
}}{{#if: {{{passives off hand|}}} | {{blank}}
 
'''Off Hand Only:'''
 
{{Table list|{{#invoke: ParseList | main | {{{passives off hand}}} | useTemplate = Passive | type = htmlList }}}}


The holder of this item gains:
{{{special}}}
}}
}}
=== Weapon Actions ===
 
}}{{#if: {{{weapon actions|}}} | {{blank}}
 
<h3> Weapon actions </h3>


{{WeaponProficiencyUnlocks}}
{{WeaponProficiencyUnlocks}}
{{#invoke: ParseList | main | {{{weapon actions}}} | useTemplate = WeaponAction | type = htmlList}}


{{{actions}}}
}} {{#if: {{{special weapon actions|}}} | {{blank}}


{{#switch: {{{this is an example|}}}
<h3> Special weapon actions </h3>
| yes =
 
| #default = [[Category:Equipment]] [[Category:Weapons]] [[Category:{{{melee or ranged}}} Weapons]] [[Category:{{{category}}} Weapons]] [[Category:{{{type}}}]] [[Category:{{{rarity|common}}} Items]]
This weapon also grants the following:
}}</includeonly><noinclude><!--
{{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction | type = htmlList}}
 
}}</div> {{#if: {{{condition|}}} | {{blank}}


    ==== Documentation follows ====
<h3> Condition: {{{condition}}} </h3>


-->
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
This template generates entire pages for individual weapons in the game, such as [[Longsword]] (not to be confused with [[Longswords]]) or [[Worgfang]].
{{Condition | {{{condition}}}
| save = {{{condition save|}}}
| duration = {{{condition duration|}}}
| dc = {{{condition dc|}}}
}}
{{main namespace only|{{Inflicts|{{{condition}}}|item}}}}
</div>{{#if: {{{condition2|}}} | {{blank}}


Following is an example of usage with all possible template parameters shown.  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.
<h3> Condition: {{{condition2}}} </h3>


<pre>
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{WeaponPage
{{Condition | {{{condition2}}}
| <!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:WeaponPage -->
| save = {{{condition2 save|}}}
| image = Longsword Icon.png
| duration = {{{condition2 duration|}}}
| description = <!-- 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. -->
| dc = {{{condition2 dc|}}}
| quote = The in-game flavor text in the item's tooltip.
| category = martial <!-- martial or simple -->
| melee or ranged = melee <!-- melee or ranged, duh -->
| handedness = versatile <!-- one-handed, versatile, two-handed -->
| type = Longswords <!-- One of [[Category:Weapon Types]]. Always plural. -->
| rarity = <!-- Leave EMPTY for common, otherwise: uncommon, rare, very rare, legendary, story -->
| enchantment = <!-- Leave EMPTY for none, otherwise: +1, +2, +3, +4, +5 -->
| damage = 1d8 + 1 <!-- Must follow the strict format XdY + Z, with the "+ Z" only needed if the weapon has an enchantment. -->
| damage type = Slashing <!-- Accepts any of [[Damage Types]], but usually: Slashing, Piercing, or Bludgeoning -->
| versatile damage = 1d10 + 2 <!-- Same format as regular damage, or leave EMPTY if this isn't a Versatile weapon. -->
| extra damage = 1d4 Fire <!-- Same format as regular damage, but with damage type directly on the same line. -->
| range = <!-- Leave EMPTY if melee, otherwise this can be "normal", "short" (e.g. Hand Crossbow), or "special" -->
| range m = <!-- Leave EMPTY if "range" is NOT "special", otherwise this is the range in meters. -->
| range ft = <!-- Leave EMPTY if "range" is NOT "special", otherwise this is the range in feet. -->
| <!-- Following are 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
| actions = <!-- Common actions you get when you have proficiency and wield the weapon in your main-hand. -->
* {{Pommel Strike}}
* {{Lacerate}}
* {{Rush Attack}}
| special = <!-- List of special features or abilities granted by the weapon. -->
* '''Super Cool Ability:''' Once per [[Long Rest]] you can use this awesome ability of this weapon.
| where to find = <!-- Describe where and how to obtain the weapon, if it's a special one. -->
This is a made-up weapon.  You cannot obtain it anywhere in the game.
}}
}}
</pre>
{{main namespace only|{{Inflicts|{{{condition2}}}|item}}}}
</div>
 
  }}
}} {{#if: {{{where to find|}}} | {{blank}}
 
<h2> Where to find </h2>
 
<div class="bg3wiki-tooltip-box">
{{{where to find}}}
</div>
}} {{#if: {{{notes|}}} | {{blank}}


See here for the result of the above: [[Template:WeaponPage/Example]]
<h2> Notes </h2>


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 weapon pages are added.
<div class="bg3wiki-tooltip-box">
{{{notes}}}
</div>
}} {{#if: {{{bugs|}}} | {{blank}}


[[Category:Page Generating Templates]] [[Category:Weapon Page Templates]]
<h2> Bugs </h2>


{{#cargo_declare:
<div class="bg3wiki-tooltip-box">
_table = weapons
{{{bugs}}}
| name = String (unique; mandatory)
{{Main namespace only|[[Category:Bugs]]}}
| image = File
</div>
| 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
| range_m = Float
| range_ft = Float
| ammunition = Boolean
| finesse = Boolean
| heavy = Boolean
| light = Boolean
| loading = Boolean
| reach = Boolean
| thrown = Boolean
| cannot_dual_wield = Boolean
| dippable = Boolean
| weight_kg = Float
| weight_lb = Float
| price = Integer
| actions = Wikitext
| special = Wikitext
| where_to_find = Wikitext
}}
}}
</noinclude><includeonly>{{#switch: {{{this is an example|}}}
{{Main namespace only|[[Category:Equipment]] [[Category:Weapons]] [[Category:{{{melee or ranged}}} weapons]] [[Category:{{{category}}} weapons]] {{#if: {{{type|}}} | [[Category:{{{type}}}]]}}  {{#ifeq: {{{rarity|}}} | very rare | [[Category:Very rare items]] | [[Category:{{{rarity|common}}} items]]}}
| yes =  
{{ItemIcon Insert
| #default = {{#cargo_store: _table = weapons
|icon={{{icon|}}}
| name = {{#titleparts: {{PAGENAME}} }}
|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 = {{IfEmpty | {{{rarity|}}} | common}}
| rarity_order = {{#switch: {{{rarity|}}}
| rarity_order = {{#switch: {{{rarity|}}}
Line 250: Line 229:
   | story = 5
   | story = 5
   }}
   }}
| ammunition = {{IfEmpty | {{{ammunition|}}} | no}}
| finesse = {{IfEmpty | {{{finesse|}}} | no}}
| finesse = {{IfEmpty | {{{finesse|}}} | no}}
| heavy = {{IfEmpty | {{{heavy|}}} | no}}
| heavy = {{IfEmpty | {{{heavy|}}} | no}}
| light = {{IfEmpty | {{{light|}}} | no}}
| light = {{IfEmpty | {{{light|}}} | no}}
| loading = {{IfEmpty | {{{loading|}}} | no}}
| reach = {{IfEmpty | {{{reach|}}} | no}}
| reach = {{IfEmpty | {{{reach|}}} | no}}
| thrown = {{IfEmpty | {{{thrown|}}} | no}}
| thrown = {{IfEmpty | {{{thrown|}}} | no}}
Line 276: Line 253:
     | #default = {{{range ft}}}
     | #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}}} | }} }} }}
   }}
   }}
}}
}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{documentation}}
(Auto-generated TemplateData follows.)
{{#cargo_declare: _table = weapons
----
| name = String (mandatory)
<templatedata>
| uid = String
{
| legacy = String(allowed values = inaccessible, unobtainable)
"params": {
| image = File
"image": {
| controller_icon = File
"description": "The filename of the image/icon associated with this item.",
| icon = File
"example": "Merregon Halberd Icon.png",
| description = Wikitext
"type": "wiki-file-name",
| quote = Wikitext
"required": true,
| category = String (allowed values = simple, martial)
"suggested": true
| handedness = String (allowed values = one-handed, two-handed, versatile)
},
| melee_or_ranged = String (allowed values = melee, ranged)
"category": {
| type = Page
"description": "The weapon's overall proficiency category (martial or simple)",
| rarity = String
"type": "string",
| rarity_order = Integer
"suggestedvalues": [
| enchantment = String
"martial",
| damage = String
"simple"
| damage_type = String (allowed values = Piercing, Slashing, Bludgeoning)
],
| versatile_damage = String
"required": true,
| extra_damage = String
"suggested": true
| extra_damage_type = String
},
| extra_damage_2 = String
"melee or ranged": {
| extra_damage_2_type = String
"example": "melee",
| range_m = String
"type": "string",
| range_ft = String
"suggestedvalues": [
| finesse = Boolean
"melee",
| heavy = Boolean
"ranged"
| light = Boolean
],
| reach = Boolean
"required": true,
| thrown = Boolean
"suggested": true
| cannot_dual_wield = Boolean
},
| dippable = Boolean
"handedness": {
| weight_kg = String
"example": "one-handed",
| weight_lb = String
"type": "string",
| price = String
"suggestedvalues": [
| passives = List (,) of String
"one-handed",
| passives_main_hand = List (,) of String
"versatile",
| passives_off_hand = List (,) of String
"two-handed"
| weapon_actions = List (,) of String
],
| special_weapon_actions = List (,) of String
"required": true,
| special = Wikitext
"suggested": true
| where_to_find = Wikitext
},
}}</noinclude>
"type": {
"description": "The weapon's specific type. Always plural.",
"example": "Longswords",
"type": "string",
"suggestedvalues": [
"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"
],
"required": true,
"suggested": true
},
"rarity": {
"description": "The rarity level of the weapon (common, uncommon, rare, very rare, legendary, story)",
"example": "uncommon",
"type": "string",
"suggestedvalues": [
"common",
"uncommon",
"rare",
"very rare",
"legendary",
"story"
],
"required": true,
"suggested": true
},
"enchantment": {
"description": "The value of the enchantment on the weapon. Leave blank if no enchantment.",
"example": "+1",
"type": "string",
"suggestedvalues": [
"+1",
"+2",
"+3",
"+4",
"+5"
],
"suggested": true
},
"special": {
"description": "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]].",
"type": "content",
"suggested": true
},
"description": {
"description": "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.",
"type": "content",
"suggested": true
},
"ammunition": {
"description": "Does this weapon have the Ammunition property? (Leave EMPTY if no!)",
"example": "yes",
"type": "string",
"suggestedvalues": [
"yes"
],
"suggested": true
},
"finesse": {
"description": "Does this weapon have the Finesse property? (Leave BLANK if no!)",
"type": "string",
"suggestedvalues": [
"yes"
],
"suggested": true
},
"heavy": {
"description": "Does this weapon have the Heavy property? (Leave BLANK if no!)",
"example": "yes",
"type": "string",
"suggestedvalues": [
"yes"
],
"suggested": true
},
"light": {
"description": "Does this weapon have the Light property? (Leave BLANK if no!)",
"example": "yes",
"type": "string",
"suggestedvalues": [
"yes"
],
"suggested": true
},
"loading": {
"description": "Does this weapon have the Loading property? (Leave BLANK if no!)",
"example": "yes",
"type": "string",
"suggestedvalues": [
"yes"
],
"suggested": true
},
"reach": {
"description": "Does this weapon have the Extra Reach property? (Leave BLANK if no!)",
"example": "yes",
"type": "string",
"suggestedvalues": [
"yes"
],
"suggested": true
},
"thrown": {
"description": "Does this weapon have the Thrown property? (Leave BLANK if no!)",
"example": "yes",
"type": "string",
"suggestedvalues": [
"yes"
],
"suggested": true
},
"can't dual wield": {
"description": "Does this weapon have the Can't Dual Wield property? (Leave BLANK if no!)",
"example": "yes",
"type": "string",
"suggestedvalues": [
"yes"
],
"suggested": true
},
"quote": {
"description": "The in-game flavour text in the weapon's tooltip.",
"type": "string",
"suggested": true
},
"where to find": {
"description": "Describe where and how to obtain the weapon (can leave empty if it's super commonly obtainable).",
"example": "Looted from [[NPC Name]] in [[Location]].",
"type": "content",
"suggested": true
},
"damage": {
"description": "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",
"type": "string",
"required": true,
"suggested": true
},
"damage type": {
"description": "The damage type of the weapon",
"example": "Slashing",
"type": "string",
"suggestedvalues": [
"Slashing",
"Bludgeoning",
"Piercing"
],
"required": true,
"suggested": true
},
"versatile damage": {
"description": "Same format as regular damage. Leave EMPTY if this weapon is not Versatile.",
"example": "1d10 + 1",
"type": "string",
"suggested": true
},
"extra damage": {
"description": "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",
"type": "string",
"suggested": true
},
"dippable": {
"description": "Does this weapon have the Dippable property? (Leave BLANK if no!)",
"example": "yes",
"type": "string",
"suggestedvalues": [
"yes"
],
"default": "yes",
"suggested": true
},
"range": {
"description": "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.",
"type": "string",
"suggestedvalues": [
"normal",
"short",
"special"
],
"suggested": true
},
"range m": {
"label": "special range m",
"description": "Leave EMPTY unless range is \"special.\" Special range of the weapon in meters.",
"example": "18",
"type": "number",
"suggested": true
},
"range ft": {
"label": "special range ft",
"description": "Leave EMPTY unless range is \"special.\" Special range of the weapon in feet.",
"example": "60",
"type": "number",
"suggested": true
},
"weight kg": {
"description": "Weight of the weapon in kilograms",
"example": "1.35",
"type": "number",
"required": true,
"suggested": true
},
"weight lb": {
"description": "Weight of the weapon in pounds",
"example": "2.7",
"type": "number",
"required": true,
"suggested": true
},
"price": {
"description": "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",
"type": "number",
"required": true,
"suggested": true
},
"actions": {
"description": "List of Weapon Actions gained by wielding this weapon in the main hand. Be sure to separate multiple actions with * Bullets, with each bullet and action on a new line.",
"example": "* {{Lacerate}}",
"type": "content",
"suggested": true
}
},
"description": "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.)",
"format": "block",
"paramOrder": [
"image",
"category",
"description",
"quote",
"where to find",
"type",
"rarity",
"melee or ranged",
"handedness",
"damage",
"versatile damage",
"damage type",
"extra damage",
"enchantment",
"range",
"range m",
"range ft",
"ammunition",
"finesse",
"heavy",
"light",
"loading",
"reach",
"thrown",
"can't dual wield",
"dippable",
"weight kg",
"weight lb",
"price",
"special",
"actions"
]
}
</templatedata></noinclude>

Navigation menu