Template:Weapon type page: Difference between revisions
No edit summary |
No edit summary |
||
Line 62: | Line 62: | ||
{{WeaponProficiencyUnlocks}} | {{WeaponProficiencyUnlocks}} | ||
{{{actions}}} | {{#if: {{{weapon actions|}}} | ||
| {{#invoke: ParseList | main | {{{weapon actions}}} | useTemplate = WeaponAction | type = htmlList }} | |||
| {{{actions}}} | |||
}} | |||
<h2> List of {{{type}}} </h2> | <h2> List of {{{type}}} </h2> | ||
Line 108: | Line 111: | ||
| light = yes | | light = yes | ||
| dippable = yes | | dippable = yes | ||
| actions = | | weapon actions = Pommel Strike, Lacerate | ||
}} | }} | ||
</pre> | </pre> | ||
Line 133: | Line 134: | ||
| light = yes | | light = yes | ||
| dippable = yes | | dippable = yes | ||
| actions = | | weapon actions = Piercing Strike | ||
| this is an example = yes | | this is an example = yes | ||
}} | }} | ||
Line 151: | Line 151: | ||
| heavy = yes | | heavy = yes | ||
| dippable = yes | | dippable = yes | ||
| actions = | | weapon actions = Hamstring Shot, Brace (Ranged) | ||
| this is an example = yes | | this is an example = yes | ||
}} | }} | ||
---- | ---- | ||
Line 172: | Line 169: | ||
| dippable = Boolean | | dippable = Boolean | ||
| actions = Wikitext | | actions = Wikitext | ||
| weapon_actions = List (,) of String | |||
}} | }} | ||
</noinclude><includeonly>{{#switch: {{{this is an example|}}} | </noinclude><includeonly>{{#switch: {{{this is an example|}}} |
Revision as of 02:38, 2 August 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 | 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 are a type of simple, one-handed, 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
Actions
If you have proficiency, equip in main hand to gain:
-
- Piercing Strike ()
- Stab an enemy and possibly inflict Gaping Wounds.
List of Daggers
Omitted because this is an example
Longbows
Longbows are a type of martial, two-handed, 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
- Range: 18 m / 60 ft
- Two-Handed
- Template:Ammunition
- Heavy
- 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
This template defines the table "weapon_types". View table.