Template:WeaponsTableRow: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Updated to no longer need to query cargo again)
(Improve code and formatting.)
Line 31: Line 31:


<td style="vertical-align: middle;">
<td style="vertical-align: middle;">
{{#if: {{{passives|}}} | {{#invoke: ParseList | main | {{{passives}}} | useTemplate = Passive | type = htmlList }} | }}{{#if: {{{passives main hand|}}} | Main Hand Only
{{#if: {{{passives|}}} |
{{#invoke: ParseList | main | {{{passives main hand}}} | useTemplate = Passive | type = htmlList }} | }}{{#if: {{{passives off hand|}}} | Off-Hand Only
{{#invoke: ParseList | main | {{{passives}}} | useTemplate = Passive | type = htmlList }}
{{#invoke: ParseList | main | {{{passives off hand}}} | useTemplate = Passive | type = htmlList }} | }}{{{special}}}{{#if: {{{special weapon actions|}}}|{{#if: {{{special|}}}|<br/>|}}{{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction | type = htmlList }} | }}{{#if:{{{legacy|}}}|<br>
}}{{#if: {{{passives main hand|}}} | {{blank}}
Main Hand Only
{{#invoke: ParseList | main | {{{passives main hand}}} | useTemplate = Passive | type = htmlList }}
}}{{#if: {{{passives off hand|}}} | {{blank}}
Off-Hand Only
{{#invoke: ParseList | main | {{{passives off hand}}} | useTemplate = Passive | type = htmlList }}
}}{{#if: {{{special|}}} | {{blank}}
{{{special}}}
}}{{#if: {{{special weapon actions|}}} | {{blank}}
{{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction | type = htmlList }}
}}{{#if: {{{legacy|}}} | {{blank}}
* {{Legacy Content/notice|{{{legacy}}} }}
* {{Legacy Content/notice|{{{legacy}}} }}
}}
}}

Revision as of 12:53, 28 March 2024

For use with Cargo queries; see Template:WeaponTypePage. Sample:

Weapon Enchant. Damage Damage Type Weight Price Special


Example Bow #1

+2 1d8 + 2 Slashing 1d4
1d4
Fire
Cold

18 kg
36 lb

400
  • Super cool special feature.


Example Bow #2

+1 1d8 Slashing 1d8 Fire

18 kg
36 lb

400

  • Super cool special feature.


Example Sword

+1 1d8 Slashing

18 kg
36 lb

400