Template:Weapon page: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 27: Line 27:
| modifier = {{#if:{{{finesse|}}}|finesse|{{{melee or ranged}}}}}
| 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}}} | }} }} }}
}}
}}


Line 92: Line 97:
| <!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:WeaponPage -->
| <!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:WeaponPage -->
| image = Longsword Icon.png
| image = Longsword Icon.png
| description = Optional description for special items.  (Nonmagical and simple +1/+2/etc. will be auto-generated, so no need for those.)
| description = Optional description for special items.  Nonmagical and simple +1/+2/etc. will be auto-generated, so no need for those. Others will also have a sensible default description generated for them so strictly speaking you can always leave this empty.
| quote = A common sword, passed between hands both fresh and battle-scarred.
| quote = The in-game flavor text in the item's tooltip, usually told in the narrator's voice.
| category = martial
| category = martial
| melee or ranged = melee
| melee or ranged = melee
| handedness = versatile
| handedness = versatile
| type = Longswords
| type = Longswords
| rarity = <!-- Empty for common, otherwise: uncommon, rare, veryrare, legendary -->
| enchantment = <!-- Empty for none, otherwise: +1, +2, +3, +4, +5 -->
| damage = 1d8 + 1 Slashing
| damage = 1d8 + 1 Slashing
| versatile damage = 1d10 + 2
| versatile damage = 1d10 + 2
| finesse = yes
| extra damage = 1d4 Fire
| light = yes
| ammunition = <!-- Here we have yes/no properties, which MUST BE EMPTY if you mean "no"!  Never actually type "no"! -->
| finesse =
| heavy =
| light =
| loading =
| reach =
| thrown =
| can't dual wield =
| dippable = yes
| dippable = yes
| weight kg = 1.35
| weight kg = 1.35
Line 108: Line 122:
| main hand only =
| main hand only =
* {{Tenacity}}
* {{Tenacity}}
| special =
* '''Super Cool Ability:''' Once per [[Long Rest]] you can use this awesome ability of this weapon.
| actions =
| actions =
* {{Pommel Strike}}
* {{Pommel Strike}}

Revision as of 21:58, 5 February 2023

This template generates entire pages for individual weapons in the game, such as Longsword (not to be confused with Longswords) or Worgfang.

Here's an example of usage (note this has intentionally wrong information because it tries to showcase as many different parameters as possible):

{{WeaponPage
| <!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:WeaponPage -->
| image = Longsword Icon.png
| description = Optional description for special items.  Nonmagical and simple +1/+2/etc. will be auto-generated, so no need for those.  Others will also have a sensible default description generated for them so strictly speaking you can always leave this empty.
| quote = The in-game flavor text in the item's tooltip, usually told in the narrator's voice.
| category = martial
| melee or ranged = melee
| handedness = versatile
| type = Longswords
| rarity = <!-- Empty for common, otherwise: uncommon, rare, veryrare, legendary -->
| enchantment = <!-- Empty for none, otherwise: +1, +2, +3, +4, +5 -->
| damage = 1d8 + 1 Slashing
| versatile damage = 1d10 + 2
| extra damage = 1d4 Fire
| ammunition = <!-- Here we have yes/no properties, which MUST BE EMPTY if you mean "no"!  Never actually type "no"! -->
| 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}}
}}

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.