Template:Weapon page: Difference between revisions

Jump to navigation Jump to search
m
Added table list
No edit summary
m (Added table list)
(92 intermediate revisions by 12 users not shown)
Line 2: Line 2:
| yes =
| yes =
| #default = {{PageSeo
| #default = {{PageSeo
   | image = {{{image}}}
   | image = {{#if:{{{controller icon|}}}|{{{controller icon}}}|{{#if:{{{image|}}}|{{{image}}}|{{{icon|}}}}}}}
   | description = {{{seo description|{{WeaponPage/SeoDescription
   | description = {{{description|{{WeaponPage/SeoDescription
     | category = {{{category}}}
     | category = {{{category}}}
     | melee or ranged = {{{melee or ranged}}}
     | melee or ranged = {{{melee or ranged}}}
Line 17: Line 17:
| {{#replace: {{{rarity}}} | <nowiki> </nowiki> | }}
| {{#replace: {{{rarity}}} | <nowiki> </nowiki> | }}
| common
| common
}}"> {{#if:{{{image|}}} | [[File:{{{image}}}|300px|right]] | [[Category:Equipment pages without images]]}}
}}"> {{#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|}}}
Line 59: Line 59:
}}
}}


{{#if: {{{quote|}}} | {{Description|{{{quote}}}}} }}
{{#if: {{{quote|}}} | {{Description|{{{quote}}}}}}}


<h2> Properties </h2>
<h2> Properties </h2>


<dl class="bg3wiki-weapon-damages">
<div class="bg3wiki-property-list">
{{#ifeq: {{{handedness}}} | versatile | <dt> One-handed damage:
; {{#ifeq: {{{handedness}}} | versatile | One-handed damage | Damage }}
}} <dd> {{DamageInfo
: {{DamageInfo
| {{{damage}}}
| {{{damage}}}
| {{{damage type}}}
| {{{damage type}}}
| modifier = {{#if: {{{modifier|}}} | {{{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 |
<dt> Two-handed damage:
; Two-handed damage
<dd> {{DamageInfo
: {{DamageInfo
     | {{{versatile damage}}}
     | {{{versatile damage}}}
     | {{{damage type}}}
     | {{{damage type}}}
     | modifier = {{#if: {{{modifier|}}} | {{{modifier}}} | {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }}
     | modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}}| {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }}
     }}
     }}
}} {{#if: {{{extra damage|}}} |
}} {{#if: {{{extra damage|}}} |
<dt> Extra damage:
; Extra damage
<dd> {{DamageInfo
: {{DamageInfo
     | {{#sub: {{{extra damage}}} | 0 | {{#rpos: {{{extra damage}}} | }} }}
     | {{#sub: {{{extra damage}}} | 0 | {{#rpos: {{{extra damage}}} | }} }}
     | {{#sub: {{{extra damage}}} | {{#expr: 1 + {{#rpos: {{{extra damage}}} | }} }} }}
     | {{#sub: {{{extra damage}}} | {{#expr: 1 + {{#rpos: {{{extra damage}}} | }} }} }}
     }}
     }}
}} {{#if: {{{extra damage 2|}}} |
}} {{#if: {{{extra damage 2|}}} |
<dd> {{DamageInfo
: {{DamageInfo
     | {{#sub: {{{extra damage 2}}} | 0 | {{#rpos: {{{extra damage 2}}} | }} }}
     | {{#sub: {{{extra damage 2}}} | 0 | {{#rpos: {{{extra damage 2}}} | }} }}
     | {{#sub: {{{extra damage 2}}} | {{#expr: 1 + {{#rpos: {{{extra damage 2}}} | }} }} }}
     | {{#sub: {{{extra damage 2}}} | {{#expr: 1 + {{#rpos: {{{extra damage 2}}} | }} }} }}
     }}
     }}
}}
}}
</dl>
; Details {{#if: {{{type|}}}
 
| : {{WeaponType | {{{type}}} }}
<ul class="bg3wiki-weapon-properties">
| [[Category:Weapon pages without a type]] [[Category:Articles with errors]]
<li> {{WeaponType | {{{type}}} }}
}}
<li> {{Rarity | {{{rarity|common}}} }}
: {{Rarity | {{{rarity|common}}} | {{{rarity honour|}}} }}
<li> {{Enchantment | {{{enchantment|}}} }}
: {{Enchantment | {{{enchantment|}}} }}
<li> {{#switch: {{{handedness}}}
: {{#switch: {{{handedness}}}
| one-handed = {{One-Handed}}
| one-handed = {{One-Handed}}
| two-handed = {{Two-Handed}}
| two-handed = {{Two-Handed}}
| versatile = {{Versatile}}
| versatile = {{Versatile}}
}} {{#if: {{{finesse|}}} | <li> {{Finesse}}
}} {{#if: {{{finesse|}}} | : {{Finesse}}
}} {{#if: {{{light|}}} | <li> {{Light}}
}} {{#if: {{{light|}}} | : {{Light}}
}} {{#if: {{{reach|}}} | <li> {{Reach}}
}} {{#if: {{{reach|}}} | : {{Reach}}
}} {{#if: {{{thrown|}}} | <li> {{Thrown}}
}} {{#if: {{{thrown|}}} | : {{Thrown}}
}} {{#if: {{{can't dual wield|}}} | <li> {{Can't Dual Wield}}
}} {{#if: {{{can't dual wield|}}} | : {{Can't Dual Wield}}
}} {{#if: {{{dippable|}}} | <li> {{Dippable}}
}} {{#if: {{{dippable|}}} | : {{Dippable}}
}}
}}
<li> {{#switch: {{{melee or ranged}}}
: {{#switch: {{{melee or ranged}}}
| melee = {{Range| {{#if: {{{reach|}}} | reach | melee}} }}
| melee = {{Range| {{#if: {{{reach|}}} | reach | melee}} }}
| ranged =
| ranged =
Line 115: Line 115:
   }}
   }}
}}
}}
<li> {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }}
: {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }}
<li> {{Price | {{{price}}} }} {{#if: {{{special|}}} | {{blank}}
: {{Price | {{{price}}} | {{{price honour|}}} }}
</ul>
{{#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>
<h3> Special </h3>


The holder of this item gains:
'''The holder of this item gains:'''
{{{special}}}
 
}} {{#if: {{{weapon actions|}}}{{{actions|}}} | {{blank}}
{{#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:'''


<h3> Weapon Actions </h3>
{{Table list|{{#invoke: ParseList | main | {{{passives main hand}}} | useTemplate = Passive | type = htmlList }}}}


{{WeaponProficiencyUnlocks}}
}}{{#if: {{{passives off hand|}}} | {{blank}}


{{#if: {{{weapon actions|}}}
'''Off Hand Only:'''
| {{#invoke: ParseList | main | {{{weapon actions}}} | useTemplate = WeaponAction | type = htmlList }}
| {{{actions}}}
}}
}}</div>{{#if: {{{where to find|}}} | {{blank}}


<h2> Where to Find </h2>
{{Table list|{{#invoke: ParseList | main | {{{passives off hand}}} | useTemplate = Passive | type = htmlList }}}}


<div class="bg3wiki-tooltip-box">
{{{where to find}}}
</div>
}}
}}


{{#switch: {{{this is an example|}}}
}}{{#if: {{{weapon actions|}}} | {{blank}}
| yes =
 
| #default = [[Category:Equipment]] [[Category:Weapons]] [[Category:{{{melee or ranged}}} Weapons]] [[Category:{{{category}}} Weapons]] [[Category:{{{type}}}]]  {{#ifeq: {{{rarity|}}} | very rare | [[Category:Very Rare Items]] | [[Category:{{{rarity|common}}} Items]]}}
<h3> Weapon actions </h3>
}}</includeonly><noinclude><!--


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


-->
}} {{#if: {{{special weapon actions|}}} | {{blank}}
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 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> Special weapon actions </h3>


<pre>
This weapon also grants the following:
{{WeaponPage
{{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction | type = htmlList}}
<!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:WeaponPage -->
| image = Longsword Icon.png
| 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. -->
| 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. -->
| extra damage 2 = 1d6 Acid <!-- 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
<!-- Common actions you get when you have proficiency and wield the weapon in your main-hand. -->
| weapon actions = 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>


Examples follow. __NOTOC__
}}</div> {{#if: {{{condition|}}} | {{blank}}


<h1>Longsword</h1>
<h3> Condition: {{{condition}}} </h3>


{{WeaponPage
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
<!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:WeaponPage -->
{{Condition | {{{condition}}}
| image = Longsword Icon.png
| save = {{{condition save|}}}
| 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. -->
| duration = {{{condition duration|}}}
| quote = The in-game flavor text in the item's tooltip.
| dc = {{{condition dc|}}}
| 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. -->
| extra damage 2 = 1d6 Acid <!-- 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
<!-- Common actions you get when you have proficiency and wield the weapon in your main-hand. -->
| weapon actions = 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.
| this is an example = yes <!-- Important to specify this when the template is only used for example purposes. -->
}}
}}
{{main namespace only|{{Inflicts|{{{condition}}}|item}}}}
</div>{{#if: {{{condition2|}}} | {{blank}}


<h1>Dagger</h1>
<h3> Condition: {{{condition2}}} </h3>


{{WeaponPage
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
<!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:WeaponPage -->
{{Condition | {{{condition2}}}
| image = Dagger Icon.png
| save = {{{condition2 save|}}}
| 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. -->
| duration = {{{condition2 duration|}}}
| quote = The in-game flavor text in the item's tooltip.
| dc = {{{condition2 dc|}}}
| category = simple <!-- martial or simple -->
| melee or ranged = melee <!-- melee or ranged, duh -->
| handedness = one-handed <!-- 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 = 1d4 + 1 <!-- Must follow the strict format XdY + Z, with the "+ Z" only needed if the weapon has an enchantment. -->
| damage type = Piercing <!-- Accepts any of [[Damage Types]], but usually: Slashing, Piercing, or Bludgeoning -->
| 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"! -->
| finesse = yes
| light = yes
| reach =
| thrown = yes
| can't dual wield =
| dippable = yes
| weight kg = 1.35
| weight lb = 2.7
| price = 75
<!-- Common actions you get when you have proficiency and wield the weapon in your main-hand. -->
| weapon actions = Piercing Strike
| 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.
| this is an example = yes <!-- Important to specify this when the template is only used for example purposes. -->
}}
}}
{{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}}


----
<h2> Notes </h2>
 
<div class="bg3wiki-tooltip-box">
{{{notes}}}
</div>
}} {{#if: {{{bugs|}}} | {{blank}}


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


{{#cargo_declare: _table = weapons
<div class="bg3wiki-tooltip-box">
| name = String (unique; mandatory)
{{{bugs}}}
| image = File
{{Main namespace only|[[Category:Bugs]]}}
| description = Wikitext
</div>
| 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 = 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 = String
| weight_lb = String
| price = String
| weapon_actions = List (,) of String
| 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|}}}
|image={{{controller icon|}}}
|uid={{{uid|}}}
|rarity={{{rarity|common}}}
}}{{#cargo_store: _table = weapons
| name = {{{name | {{#titleparts: {{PAGENAME}} }} }}}
| 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 332: 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 372: Line 267:
   }}
   }}
}}
}}
}}</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
"name": {
| controller_icon = File
"description": "The name of the item -- can be left out to use the page name automatically.",
| icon = File
"example": "Merregon Halberd",
| description = Wikitext
"type": "string",
| quote = Wikitext
"required": false,
| 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)
"image": {
| type = Page
"description": "The filename of the image/icon associated with this item.",
| rarity = String
"example": "Merregon Halberd Icon.png",
| rarity_order = Integer
"type": "wiki-file-name",
| enchantment = String
"required": true,
| damage = String
"suggested": true
| damage_type = String (allowed values = Piercing, Slashing, Bludgeoning)
},
| versatile_damage = String
"category": {
| extra_damage = String
"description": "The weapon's overall proficiency category (martial or simple)",
| extra_damage_type = String
"type": "string",
| extra_damage_2 = String
"suggestedvalues": [
| extra_damage_2_type = String
"martial",
| range_m = String
"simple"
| range_ft = String
],
| finesse = Boolean
"required": true,
| heavy = Boolean
"suggested": true
| light = Boolean
},
| reach = Boolean
"melee or ranged": {
| thrown = Boolean
"example": "melee",
| cannot_dual_wield = Boolean
"type": "string",
| dippable = Boolean
"suggestedvalues": [
| weight_kg = String
"melee",
| weight_lb = String
"ranged"
| price = String
],
| passives = List (,) of String
"required": true,
| passives_main_hand = List (,) of String
"suggested": true
| passives_off_hand = List (,) of String
},
| weapon_actions = List (,) of String
"handedness": {
| special_weapon_actions = List (,) of String
"example": "one-handed",
| special = Wikitext
"type": "string",
| where_to_find = Wikitext
"suggestedvalues": [
}}</noinclude>
"one-handed",
"versatile",
"two-handed"
],
"required": true,
"suggested": true
},
"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
},
"extra damage 2": {
"description": "Additional extra damage, like if the weapon deals and extra 1d4 Fire AND an extra 1d4 Acid or something.",
"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
},
"weapon actions": {
"description": "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",
"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": [
"name",
"image",
"category",
"description",
"quote",
"where to find",
"type",
"rarity",
"melee or ranged",
"handedness",
"damage",
"versatile damage",
"damage type",
"extra damage",
"extra damage 2",
"enchantment",
"range",
"range m",
"range ft",
"ammunition",
"finesse",
"heavy",
"light",
"loading",
"reach",
"thrown",
"can't dual wield",
"dippable",
"weight kg",
"weight lb",
"price",
"special",
"weapon actions"
]
}
</templatedata></noinclude>

Navigation menu