Template:Weapon type page: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Only need the icon)
(Simplify by using MediaWiki's builtin dd/dt/dl syntax.)
Line 12: Line 12:
<h2> Properties </h2>
<h2> Properties </h2>


<dl class="bg3wiki-property-list">
<div class="bg3wiki-property-list">
<dt> {{#if: {{{versatile damage|}}} | One-handed damage: | Damage: }}  
; {{#if: {{{versatile damage|}}} | One-handed damage | Damage }}
<dd> {{DamageInfo
: {{DamageInfo
     | {{{damage}}}
     | {{{damage}}}
     | {{{damage type}}}
     | {{{damage type}}}
     | modifier = {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }}
     | modifier = {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }}
     }}
     }}<!-- (prevent <dd> from being broken up)
{{#if: {{{versatile damage|}}} |
-->{{#if: {{{versatile damage|}}} |
<dt> Two-handed damage:
; Two-handed damage
<dd> {{DamageInfo
: {{DamageInfo
     | {{{versatile damage}}}
     | {{{versatile damage}}}
     | {{{damage type}}}
     | {{{damage type}}}
Line 27: Line 27:
     }}
     }}
}}
}}
<dt> Details:
; Details
<dd> {{#switch:{{{handedness|}}}
: {{#switch:{{{handedness|}}}
     | one-handed = {{One-Handed}}
     | one-handed = {{One-Handed}}
     | two-handed = {{Two-Handed}}
     | two-handed = {{Two-Handed}}
Line 34: Line 34:
     }}
     }}
{{#if: {{{range m|}}} {{{range ft|}}}
{{#if: {{{range m|}}} {{{range ft|}}}
| <dd> {{Range|m={{{range m}}}|ft={{{range ft}}}}}
| : {{Range|m={{{range m}}}|ft={{{range ft}}}}}
| <dd> {{#if:{{{range|}}}
| : {{#if:{{{range|}}}
       | {{Range|{{{range}}}}}
       | {{Range|{{{range}}}}}
       | {{#ifeq: {{{melee or ranged|}}} | ranged
       | {{#ifeq: {{{melee or ranged|}}} | ranged
Line 45: Line 45:
         }}
         }}
       }}
       }}
}} {{#if: {{{finesse|}}} | <dd> {{Finesse}}
}} {{#if: {{{finesse|}}} | : {{Finesse}}
}} {{#if: {{{light|}}} | <dd> {{Light}}
}} {{#if: {{{light|}}} | : {{Light}}
}} {{#if: {{{reach|}}} | <dd> {{Reach}}
}} {{#if: {{{reach|}}} | : {{Reach}}
}} {{#if: {{{thrown|}}} | <dd> {{Thrown}}
}} {{#if: {{{thrown|}}} | : {{Thrown}}
}} {{#if: {{{can't dual wield|}}} | <dd> {{Can't Dual Wield}}
}} {{#if: {{{can't dual wield|}}} | : {{Can't Dual Wield}}
}} {{#if: {{{dippable|}}} | <dd> {{Dippable}}
}} {{#if: {{{dippable|}}} | : {{Dippable}}
}}
}}
</dl>
</div>


=== Actions ===
=== Actions ===
Line 163: Line 163:
| damage = 1d8
| damage = 1d8
| damage type = Piercing
| damage type = Piercing
| heavy = yes
| dippable = yes
| dippable = yes
| weapon actions = Hamstring Shot, Brace (Ranged)
| weapon actions = Hamstring Shot, Brace (Ranged)
| this is an example = yes
}}
= Longswords =
{{WeaponTypePage
| type = Longswords
| example = Longsword
| category = martial
| handedness = versatile
| melee or ranged = melee
| damage = 1d8
| damage type = Slashing
| versatile damage = 1d10
| dippable = yes
| weapon actions = Pommel Strike, Lacerate
| this is an example = yes
| this is an example = yes
}}
}}

Revision as of 14:14, 24 April 2024

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
| weapon 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.

Examples follow.

Daggers

Daggers Daggers are a type of one-handed simple melee weapon. Following are some base attributes common to most daggers, although special or magical variants may be significantly different. For the most common, nonmagical kind of this weapon, see Dagger. Further down below, you can find a list of all daggers in the game.

Properties

Damage
Details
 One-Handed
 Melee: 1.5 m / 5  ft
Finesse Finesse
Light (weapon property) Light
Dippable Dippable

Actions

Proficiency Icon.png If you have proficiency, equip in main hand to gain:

List of daggers

Omitted because this is an example

Legacy content

Omitted because this is an example


Longbows

Longbows Longbows are a type of two-handed martial ranged weapon. Following are some base attributes common to most longbows, although special or magical variants may be significantly different. For the most common, nonmagical kind of this weapon, see Longbow. Further down below, you can find a list of all longbows in the game.

Properties

Damage
D8 Piercing.png 1d8 (1~8) + Dexterity modifier Damage TypesPiercing damage
Details
 Two-Handed
 Range: 18 m / 60 ft
Dippable Dippable

Actions

Proficiency Icon.png If you have proficiency, equip in main hand to gain:

  • Hamstring Shot Hamstring Shot ()
    Shoot an enemy in the thigh and possibly reduce their Movement Speed by 50%.
  • Brace (Ranged) Brace ()
    Spend 6 m / 20 ft of your movement. For the rest of your turn, roll ranged damage twice and use the highest result.

List of longbows

Omitted because this is an example

Legacy content

Omitted because this is an example


Longswords

Longswords Longswords are a type of versatile martial melee weapon. Following are some base attributes common to most longswords, although special or magical variants may be significantly different. For the most common, nonmagical kind of this weapon, see Longsword. Further down below, you can find a list of all longswords in the game.

Properties

One-handed damage
D8 Slashing.png 1d8 (1~8) + Strength modifier Damage TypesSlashing damage
Two-handed damage
D10 Slashing.png 1d10 (1~10) + Strength modifier Damage TypesSlashing damage
Details
 Versatile
 Melee: 1.5 m / 5  ft
Dippable Dippable

Actions

Proficiency Icon.png If you have proficiency, equip in main hand to gain:

  • Pommel Strike Pommel Strike ()
    Make a non-lethal attack against an enemy and possibly Dazed Daze them.
  • Lacerate Lacerate ()
    Slash at your target's vital points to make it Bleeding Bleed.

List of longswords

Omitted because this is an example

Legacy content

Omitted because this is an example



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