Template:Weapon type page: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{WeaponType|{{{type}}}}} are a type of {{{category}}}, {{{handedness}}}, {{{melee or ranged}}} [[Weapons|Weapon]].  Following are some base attributes common to most {{{type}}}, although special or magical variants may be significantly different.  For the most common, nonmagical kind of this weapon, see [[{{{example}}}]].  Further down below, you can find a list of all {{{type}}} in the game.
<includeonly>{{WeaponType|{{{type}}}}} are a type of {{{category}}}, {{{handedness}}}, {{{melee or ranged}}} [[Weapons|Weapon]].  Following are some base attributes common to most {{{type}}}, although special or magical variants may be significantly different.  For the most common, nonmagical kind of this weapon, see [[{{{example}}}]].  Further down below, you can find a list of all {{{type}}} in the game.


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


{{#if: {{{versatile damage|}}} |
{{#if: {{{versatile damage|}}} |
Line 44: Line 44:
}}
}}


<h3> Actions </h3>
=== Actions ===


{{WeaponProficiencyUnlocks}}
{{WeaponProficiencyUnlocks}}
Line 50: Line 50:
{{{actions}}}
{{{actions}}}


<h2> List of {{{type}}} </h2>
== List of {{{type}}} ==


{{#cargo_query: tables = weapons
{{#cargo_query: tables = weapons

Revision as of 17:45, 15 July 2023

This template generates entire weapon type pages such as Daggers or Longswords.

Here's some example usage (note that this is intentionally wrong, to showcase as many parameters as possible):

{{WeaponTypePage
| <!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:WeaponTypePage -->
| type = Longswords
| example = Longsword
| category = martial
| handedness = versatile
| melee or ranged = melee
| damage = 1d8 + 1
| damage type = Slashing
| versatile damage = 1d10 + 2
| finesse = yes
| light = yes
| dippable = yes
| actions =
* {{Pommel Strike}}
* {{Lacerate}}
}}

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.

This template defines the table "weapon_types". View table.