Template:Weapon page: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[File:{{{image|Dagger Icon.png}}}|frameless|right]]
<includeonly>[[File:{{{image}}}|frameless|right]]


{{#if:{{{description|}}}
{{#if:{{{description|}}}
|{{{description}}}
|{{{description}}}
|'''{{PAGENAME}}''' is a {{{melee or ranged|melee}}}, {{{handedness|one-handed}}} [[Weapon]] of the [[{{{type|Daggers}}}]] family.
|'''{{PAGENAME}}''' is a {{{category}}} {{{handedness}}} {{{melee or ranged}}} [[Weapon]] of the [[{{{type}}}]] type.
}}
}}


Line 14: Line 14:
== Properties ==
== Properties ==


{{#switch:{{{handedness|versatile}}}
{{#switch:{{{handedness}}}
| versatile =
| versatile =
One-handed damage:
One-handed damage:
|}}{{DamageInfo
|}}{{DamageInfo
| count = {{{damage count|1}}}
| count = {{{damage count}}}
| die = {{{damage die|4}}}
| die = {{{damage die}}}
| plus = {{{damage plus|0}}}
| plus = {{{damage plus|0}}}
| modifier = {{{damage modifier|}}}
| modifier = {{{damage modifier|}}}
| type = {{{damage type|Slashing}}}
| type = {{{damage type}}}
}}{{#switch:{{{handedness|versatile}}}
}}{{#switch:{{{handedness}}}
| versatile =
| versatile =
Two-handed damage:
Two-handed damage:
{{DamageInfo
{{DamageInfo
| count = {{{two-handed damage count|1}}}
| count = {{{two-handed damage count}}}
| die = {{{two-handed damage die|6}}}
| die = {{{two-handed damage die}}}
| plus = {{{damage plus|0}}}
| plus = {{{damage plus|0}}}
| modifier = {{{damage modifier|}}}
| modifier = {{{damage modifier|}}}
| type = {{{damage type|Slashing}}}
| type = {{{damage type}}}
}}
}}
|}}
|}}
Line 41: Line 41:
|* {{Range|melee}}
|* {{Range|melee}}
}}}}
}}}}
* {{WeaponType|{{{type|Daggers}}}}}
* {{WeaponType|{{{type}}}}}
* {{#switch:{{{handedness|one-handed}}}
* {{#switch:{{{handedness}}}
| one-handed = {{One-Handed}}
| one-handed = {{One-Handed}}
| two-handed = {{Two-Handed}}
| two-handed = {{Two-Handed}}
Line 63: Line 63:
* {{Dippable}}
* {{Dippable}}
}}
}}
* {{Weight|kg={{{weight kg|1}}}|lb={{{weight lb|2}}}}}
* {{Weight|kg={{{weight kg}}}|lb={{{weight lb}}}}}
* {{Price|{{{price|10}}}}}
* {{Price|{{{price}}}}}
* {{Rarity|{{{rarity|common}}}}}
* {{Rarity|{{{rarity|common}}}}}
{{#if:{{{special|}}}|
{{#if:{{{special|}}}|
Line 77: Line 77:
{{ProficiencyUnlocks}}
{{ProficiencyUnlocks}}


{{{actions|* {{Flourish}}}}}<noinclude>
{{{actions}}}
 
[[Category:Weapons]] [[Category:{{{category}}} Weapons]] [[Category:{{{type}}}]] [[Category:{{{rarity}}} Items]]</includeonly><noinclude><!--
 
    ==== Documentation follows ====
 
-->
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:
 
<pre>
{{WeaponPage
| <!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:WeaponPage -->
| image = Longsword Icon.png
| description = The '''Longsword''' is a [[Weapons|versatile melee weapon]] that can be wielded in one hand, or with both hands for higher damage.  This page describes the most common, nonmagical variant of the [[Longswords]] family of weapons.
| quote = A common sword, passed between hands both fresh and battle-scarred.
| category = martial
| melee or ranged = melee
| handedness = versatile
| type = Longswords
| damage count = 1
| damage die = 8
| two-handed damage count = 1
| two-handed damage die = 10
| damage modifier = melee
| damage type = Slashing
| versatile = yes
| dippable = yes
| weight kg = 1.35
| weight lb = 2.7
| price = 75
| actions =
* {{Pommel Strike}}
* {{Lacerate}}
* {{Rush Attack}}
}}
</pre>
 
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.
 
[[Category:Weapon Page Templates]]
[[Category:Weapon Page Templates]]
</noinclude>
</noinclude>

Revision as of 06:53, 3 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:

{{WeaponPage
| <!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:WeaponPage -->
| image = Longsword Icon.png
| description = The '''Longsword''' is a [[Weapons|versatile melee weapon]] that can be wielded in one hand, or with both hands for higher damage.  This page describes the most common, nonmagical variant of the [[Longswords]] family of weapons.
| quote = A common sword, passed between hands both fresh and battle-scarred.
| category = martial
| melee or ranged = melee
| handedness = versatile
| type = Longswords
| damage count = 1
| damage die = 8
| two-handed damage count = 1
| two-handed damage die = 10
| damage modifier = melee
| damage type = Slashing
| versatile = yes
| dippable = yes
| weight kg = 1.35
| weight lb = 2.7
| price = 75
| 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.