10,109
editsTemplate:Weapon type page: Difference between revisions
Jump to navigation
Jump to search
Simplify by using MediaWiki's builtin dd/dt/dl syntax.
No edit summary |
(Simplify by using MediaWiki's builtin dd/dt/dl syntax.) |
||
(28 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 kind 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 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}} |