Template:Weapon type page: Difference between revisions
No edit summary |
Cattlesquat (talk | contribs) (Minor wording adjustment) |
||
(30 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{this is an example|}}} | <includeonly>{{#switch: {{{this is an example|}}} | ||
| yes = | | yes = | ||
| #default = {{ | | #default = | ||
{{PageSeo | |||
| title = {{{type}}} | | title = {{{type}}} | ||
| description = {{{type}}} are a type of {{{ | | 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 {{{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 | |||
| one-handed = {{One-Handed}} | : {{#switch:{{{handedness|}}} | ||
| two-handed = {{Two-Handed}} | | one-handed = {{One-Handed}} | ||
| versatile = {{Versatile}} | | two-handed = {{Two-Handed}} | ||
| versatile = {{Versatile}} | |||
}} | |||
}}{{#if:{{{ | {{#if: {{{range m|}}} {{{range ft|}}} | ||
| : {{Range|m={{{range m}}}|ft={{{range ft}}}}} | |||
}}{{#if:{{{ | | : {{#if:{{{range|}}} | ||
| {{Range|{{{range}}}}} | |||
}}{{#if:{{{ | | {{#ifeq: {{{melee or ranged|}}} | ranged | ||
| {{Range|ranged}} | |||
}}{{#if:{{{ | | {{#if:{{{reach|}}} | ||
| {{Range|reach}} | |||
}}{{#if:{{{reach|}}}| | | {{Range|melee}} | ||
}} | |||
}}{{#if:{{{thrown|}}}| | }} | ||
}} | |||
}}{{#if:{{{can't dual wield|}}}| | }} {{#if: {{{finesse|}}} | : {{Finesse}} | ||
}} {{#if: {{{light|}}} | : {{Light}} | |||
}}{{#if:{{{dippable|}}}| | }} {{#if: {{{reach|}}} | : {{Reach}} | ||
}} {{#if: {{{thrown|}}} | : {{Thrown}} | |||
}} {{#if: {{{can't dual wield|}}} | : {{Can't Dual Wield}} | |||
}} {{#if: {{{dippable|}}} | : {{Dippable}} | |||
}} | }} | ||
</div> | |||
=== 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, | | 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 99: | Line 114: | ||
<pre> | <pre> | ||
{{WeaponTypePage | {{WeaponTypePage | ||
<!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:WeaponTypePage --> | |||
| type = Longswords | | type = Longswords | ||
| example = Longsword | | example = Longsword | ||
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 | [[Category:Page generating templates]] | ||
Examples follow. __NOTOC__ | Examples follow. __NOTOC__ | ||
Line 148: | Line 163: | ||
| damage = 1d8 | | damage = 1d8 | ||
| damage type = Piercing | | damage type = Piercing | ||
| 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 168: | Line 197: | ||
| light = Boolean | | light = Boolean | ||
| dippable = Boolean | | dippable = Boolean | ||
| weapon_actions = List (,) of String | | weapon_actions = List (,) of String | ||
}} | }} | ||
Line 174: | 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}} |
Revision as of 21:09, 29 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
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 type of this weapon, see Dagger. Further down below, you can find a list of all daggers in the game.
Properties
- Damage
- 1d4 (1~4) + Strength or Dexterity modifier Piercing
- Details
- One-Handed
- Melee: 1.5 m / 5 ft
- Finesse
- Light
- Dippable
Actions
If you have proficiency, equip in main hand to gain:
- Piercing Strike ()
Stab an enemy and possibly inflict .
List of daggers
Omitted because this is an example
Legacy content
Omitted because this is an example
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 type of this weapon, see Longbow. Further down below, you can find a list of all longbows in the game.
Properties
- Damage
- 1d8 (1~8) + Dexterity modifier Piercing
- Details
- Two-Handed
- Range: 18 m / 60 ft
- Dippable
Actions
If you have proficiency, equip in main hand to gain:
- Hamstring Shot ()
Shoot an enemy in the thigh and possibly reduce their Movement Speed by 50%.
List of longbows
Omitted because this is an example
Legacy content
Omitted because this is an example
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 type of this weapon, see Longsword. Further down below, you can find a list of all longswords in the game.
Properties
- One-handed damage
- 1d8 (1~8) + Strength modifier Slashing
- Two-handed damage
- 1d10 (1~10) + Strength modifier Slashing
- Details
- Versatile
- Melee: 1.5 m / 5 ft
- Dippable
Actions
If you have proficiency, equip in main hand to gain:
- Pommel Strike ()
Make a non-lethal attack against an enemy and possibly them.
- Lacerate ()
Slash at your target's vital points to make it .
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.