Template:Weapon type page: Difference between revisions

Jump to navigation Jump to search
Minor wording adjustment
No edit summary
(Minor wording adjustment)
 
(26 intermediate revisions by 8 users not shown)
Line 4: Line 4:
   {{PageSeo
   {{PageSeo
   | title = {{{type}}}
   | title = {{{type}}}
   | description = {{{type}}} are a type of {{{category}}}, {{{handedness}}}, {{{melee or ranged}}} weapon in Baldur's Gate 3.  Learn more about their properties and see the list of all {{{type}}} in the game.
   | description = {{{type}}} are a type of {{{handedness}}} {{{category}}} {{{melee or ranged}}} weapon in Baldur's Gate 3.  Learn more about their properties and see the list of all {{{type}}} in the game.
   }}
   }}
}}
}}


{{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.
{{WeaponType|{{{type}}}}} are a type of {{{handedness}}} {{{category}}} {{{melee or ranged}}} [[Weapons|weapon]]. Following are some base attributes common to most {{lc:{{{type}}} }}, although special or magical variants may be significantly different. For the most common, nonmagical type of this weapon, see [[{{{example}}}]]. Further down below, you can find a list of all {{lc:{{{type}}} }} in the game.


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


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


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


{{WeaponProficiencyUnlocks}}
{{WeaponProficiencyUnlocks}}
Line 67: Line 63:
}}
}}


<h2> List of {{{type}}} </h2>
<h2> List of {{lc:{{{type}}} }}</h2>


{{#switch: {{{this is an example|}}}
{{#switch: {{{this is an example|}}}
Line 74: Line 70:
{{WeaponsTableHeader}}
{{WeaponsTableHeader}}
{{#cargo_query: tables = weapons
{{#cargo_query: tables = weapons
| fields = name, image, rarity, enchantment, damage, weight_kg, weight_lb, price, special
| fields = _pageName=page, name, uid, icon, rarity, enchantment, damage, damage_type, extra_damage, extra_damage_type, extra_damage_2, extra_damage_2_type, weight_kg, weight_lb, price, passives, passives_main_hand, passives_off_hand, special, special_weapon_actions
| order by = rarity_order, name
| order by = rarity_order, name
| where = type = "{{{type}}}"
| where = type="{{{type}}}" AND legacy IS NULL
| default = {{WeaponsTableEmpty}}
| default = {{WeaponsTableEmpty}}
| format = template
| format = template
Line 83: Line 79:
}}
}}
{{WeaponsTableFooter}}
{{WeaponsTableFooter}}
}}
<h2>Legacy content</h2>
{{#switch: {{{this is an example|}}}
| yes = ''Omitted because this is an example''
| #default =
<ul>
{{#cargo_query: tables = weapons
| fields = _pageName=page, name, uid, legacy
| order by = rarity_order, name
| where = type="{{{type}}}" AND (legacy="unobtainable" OR legacy="inaccessible")
| default = ''(None)''
| format = template
| template = Legacy item entry
| order by = legacy
| named args = yes
| more results text =
}}
</ul>
}}
}}


Line 117: Line 132:
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.
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:Page Generating Templates]]
[[Category:Page generating templates]]


Examples follow. __NOTOC__
Examples follow. __NOTOC__
Line 148: Line 163:
| damage = 1d8
| damage = 1d8
| damage type = Piercing
| damage type = Piercing
| ammunition = yes
| 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
}}
}}
Line 173: Line 202:
| yes =
| yes =
| #default = {{#cargo_store: _table = weapon_types
| #default = {{#cargo_store: _table = weapon_types
| name = {{titleparts: {{PAGENAME}} }}
| name = {{#titleparts: {{PAGENAME}} }}
| finesse = {{IfEmpty | {{{finesse|}}} | no}}
| finesse = {{IfEmpty | {{{finesse|}}} | no}}
| light = {{IfEmpty | {{{light|}}} | no}}
| light = {{IfEmpty | {{{light|}}} | no}}

Navigation menu