|
|
(106 intermediate revisions by 13 users not shown) |
Line 1: |
Line 1: |
| <includeonly>{{PageSeo | | <includeonly>{{#switch: {{{this is an example|}}} |
| | image = {{{image}}} | | | yes = |
| | description = {{WeaponPage/SeoDescription | | | #default = {{PageSeo |
| | category = {{{category}}}
| | | image = {{#if:{{{controller icon|}}}|{{{controller icon}}}|{{#if:{{{image|}}}|{{{image}}}|{{{icon|}}}}}}} |
| | melee or ranged = {{{melee or ranged}}}
| | | description = {{{description|{{WeaponPage/SeoDescription |
| | handedness = {{{handedness}}}
| | | category = {{{category}}} |
| | type = {{{type}}}
| | | melee or ranged = {{{melee or ranged}}} |
| | rarity = {{{rarity|}}}
| | | handedness = {{{handedness}}} |
| | enchantment = {{{enchantment|}}}
| | | type = {{{type}}} |
| | special = {{{special|}}}
| | | rarity = {{{rarity|}}} |
| | | enchantment = {{{enchantment|}}} |
| | | special = {{{special|}}} |
| | }}}}} |
| }} | | }} |
| }} __NOTOC__ | | }} __NOTOC__ |
Line 14: |
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 56: |
Line 59: |
| }} | | }} |
|
| |
|
| {{#if: {{{quote|}}} | {{quote|{{{quote}}}}} }} | | {{#if: {{{quote|}}} | {{Description|{{{quote}}}}}}} |
|
| |
|
| <h2> Properties </h2> | | <h2> Properties </h2> |
|
| |
|
| {{#ifeq: {{{handedness}}} | versatile | | | <div class="bg3wiki-property-list"> |
| <p>One-handed damage:</p>
| | ; {{#ifeq: {{{handedness}}} | versatile | One-handed damage | Damage }} |
| }}{{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 | {{blank}} | | }} {{#ifeq: {{{handedness}}} | versatile | |
| Two-handed damage: | | ; Two-handed damage |
| {{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|}}} | {{blank}} | | }} {{#if: {{{extra damage|}}} | |
| Extra damage: | | ; Extra damage |
| {{DamageInfo <!-- The following isn't used for regular damage because we want to be able to query weapons by damage type. --> | | : {{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|}}} | {{blank}} | | }} {{#if: {{{extra damage 2|}}} | |
| {{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}}} | }} }} }} |
| | }} |
| }} | | }} |
| | ; Details {{#if: {{{type|}}} |
| | | : {{WeaponType | {{{type}}} }} |
| | | [[Category:Weapon pages without a type]] [[Category:Articles with errors]] |
| }} | | }} |
| | | : {{Rarity | {{{rarity|common}}} | {{{rarity honour|}}} }} |
| * {{WeaponType | {{{type}}} }}
| | : {{Enchantment | {{{enchantment|}}} }} |
| * {{Rarity | {{{rarity|common}}} }}
| | : {{#switch: {{{handedness}}} |
| * {{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: {{{finesse|}}} | | | }} {{#if: {{{finesse|}}} | : {{Finesse}} |
| * {{Finesse}}
| | }} {{#if: {{{light|}}} | : {{Light}} |
| }} {{#if: {{{light|}}} | | | }} {{#if: {{{reach|}}} | : {{Reach}} |
| * {{Light}}
| | }} {{#if: {{{thrown|}}} | : {{Thrown}} |
| }} {{#if: {{{reach|}}} | | | }} {{#if: {{{can't dual wield|}}} | : {{Can't Dual Wield}} |
| * {{Reach}}
| | }} {{#if: {{{dippable|}}} | : {{Dippable}} |
| }} {{#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 116: |
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|}}} | |
| | : {{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: {{{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 }}}} |
| | |
| }} | | }} |
| <h3> Weapon Actions </h3> | | |
| | }}{{#if: {{{weapon actions|}}} | {{blank}} |
| | |
| | <h3> Weapon actions </h3> |
|
| |
|
| {{WeaponProficiencyUnlocks}} | | {{WeaponProficiencyUnlocks}} |
| | {{#invoke: ParseList | main | {{{weapon actions}}} | useTemplate = WeaponAction | style = none }} |
|
| |
|
| {{#if: {{{weapon actions|}}}
| | }} {{#if: {{{special weapon actions|}}} | {{blank}} |
| | {{#invoke: ParseList | main | {{{weapon actions}}} | useTemplate = WeaponAction | type = htmlList }}
| |
| | {{{actions}}}
| |
| }}</div>{{#if: {{{where to find|}}} | {{blank}}
| |
|
| |
|
| <h2> Where to Find </h2> | | <h3> Special weapon actions </h3> |
|
| |
|
| <div class="bg3wiki-tooltip-box">
| | This weapon also grants the following: |
| {{{where to find}}} | | {{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction | style = none }} |
| </div>
| |
| }} | |
|
| |
|
| {{#switch: {{{this is an example|}}}
| | }}</div> {{#if: {{{condition|}}} | {{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]]}}
| |
| }}</includeonly><noinclude><!--
| |
|
| |
|
| ==== 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]]. Note that the template adds the page to the correct categories automatically.
| | {{Condition | {{{condition}}} |
| | | save = {{{condition save|}}} |
| | | duration = {{{condition duration|}}} |
| | | dc = {{{condition dc|}}} |
| | | radius m = {{{condition radius m|}}} |
| | }} |
| | {{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.
| | | radius m = {{{condition2 radius m|}}} |
| | 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> | | {{main namespace only|{{Inflicts|{{{condition2}}}|item}}}} |
| | </div> |
| | |
| | }} |
| | }} {{#if: {{{where to find|}}} | {{blank}} |
|
| |
|
| An example follows. __NOTOC__
| | <h2> Where to find </h2> |
|
| |
|
| <h1>Longsword</h1> | | <div class="bg3wiki-tooltip-box"> |
| | {{{where to find}}} |
| | </div> |
| | }} {{#if: {{{notes|}}} | {{blank}} |
|
| |
|
| {{WeaponPage
| | <h2> Notes </h2> |
| <!-- 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.
| |
| | this is an example = yes <!-- Important to specify this when the template is only used for example purposes. -->
| |
| }}
| |
|
| |
|
| ---- | | <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
| |
| | 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]] |
| | yes = | | [[Category:Weapons]] |
| | #default = {{#cargo_store: _table = 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}} }} }}} | | | 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 290: |
Line 248: |
| | 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 316: |
Line 272: |
| | #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 |
| "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>
| |