Template:WeaponsTableRow: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
({{DamageType}} -> {{DamageColor}})
(Use new image rarity item template)
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><tr>
<includeonly><tr>
 
<td>
<td style="text-align: center; vertical-align: middle;">
{{Image rarity item/Format
{{ItemIcon
| page = {{{page}}}
|name={{{page}}}
| icon = {{{icon}}}
|uid={{{uid|}}}
| rarity = {{{rarity}}}
|size=50
}}
|show_rarity=t
</td>
|no_padding=t
<td>{{{enchantment}}}</td>
}}<br>
<td>
[[{{{page}}} | {{RarityColor | {{{rarity}}} | {{{name}}} }}]]
{{{damage}}}{{#if: {{{extra damage|}}} | <br/>{{{extra damage|}}} | }}{{#if: {{{extra damage 2|}}} | <br/>{{{extra damage 2|}}} | }}
</td>
<td>
{{#if: {{{damage type|}}} | <span class="{{lc:{{{damage type}}}}}">{{{damage type}}}</span> | }}{{#if: {{{extra damage type|}}} | <br/><span class="{{lc:{{{extra damage type}}}}}">{{{extra damage type}}}</span> | }}{{#if: {{{extra damage 2 type|}}} | <br/><span class="{{lc:{{{extra damage 2 type}}}}}">{{{extra damage 2 type}}}</span> | }}
</td>
</td>
 
<td>
<td style="text-align: center; vertical-align: middle;">{{{enchantment}}}</td>
{{#if: {{{weight kg|}}}
 
<!-- #8239 is non-breaking thin space. And yes, the kg to lb factor in BG3 is exactly 1/2. -->
<td style="text-align: center; vertical-align: middle;">{{{damage}}}</td>
| {{{weight kg}}}&#8239;kg <br> {{#expr:{{{weight kg|}}}*2}}&#8239;lb
 
| {{#expr:{{{weight lb}}}/2}}&#8239;kg <br> {{{weight lb}}}&#8239;lb
<td style="text-align: center; vertical-align: middle;">{{#if: {{{damage type|}}} | {{DamageColor|{{{damage type|}}}}} | }}</td>
}}
 
<td style="text-align: center; vertical-align: middle;">{{{extra damage|}}}{{#if: {{{extra damage 2|}}} | <br/>{{{extra damage 2|}}} | }}</td>
 
<td style="text-align: center; vertical-align: middle;">{{#if: {{{extra damage type|}}} | {{DamageColor|{{{extra damage type|}}}}} | }}{{#if: {{{extra damage type 2|}}} | <br/>{{DamageColor|{{{extra damage type 2|}}}}} | }}</td>
 
<td style="text-align: center; vertical-align: middle;">
{{{weight kg}}}{{nbts}}kg
<br>
{{{weight lb}}}{{nbts}}lb
</td>
</td>
 
<td>{{{price}}}</td>
<td style="text-align: center; vertical-align: middle;">{{{price}}}</td>
<td>
 
{{#if: {{{weapon passives|}}} |
<td style="vertical-align: middle;">
{{#invoke: ParseList | main | {{{weapon passives}}} | useTemplate = Passive | type = none }}
{{{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}}
* {{Legacy Content/notice|{{{legacy}}} }}
Main Hand Only
{{#invoke: ParseList | main | {{{passives main hand}}} | useTemplate = Passive | type = none }}
}}{{#if: {{{passives off hand|}}} | {{blank}}
Off-Hand Only
{{#invoke: ParseList | main | {{{passives off hand}}} | useTemplate = Passive | type = none }}
}}{{#if: {{{special|}}} | {{blank}}
{{{special}}}
}}{{#if: {{{special weapon actions|}}} | {{blank}}
{{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction | type = none }}
}}{{#if: {{{legacy|}}} | {{blank}}
* {{Legacy content/notice|{{{legacy}}} }}
}}
}}
</td>
</td>
</tr></includeonly><noinclude>For use with Cargo queries; see [[Template:WeaponTypePage]].
</tr></includeonly><noinclude>For use with Cargo queries; see [[Template:WeaponTypePage]].
[[Category:Templates]]
[[Category:Templates]]
Line 44: Line 47:
| page = Blightbringer
| page = Blightbringer
| name = Example Bow #1
| name = Example Bow #1
| image = Longsword Icon.png
| icon = Shortbow PlusOne Unfaded Icon.png
| rarity = very rare
| rarity = very rare
| enchantment = +2
| enchantment = +2
Line 52: Line 55:
| extra damage type = Fire
| extra damage type = Fire
| extra damage 2= 1d4
| extra damage 2= 1d4
| extra damage type 2= Cold
| extra damage 2 type = Cold
| weight kg = 18
| weight kg = 18
| weight lb = 36
| weight lb = 36
| price = 400
| price = 400
| passives = Chilling Counter
| special =
| special =
* Super cool special feature.
* Super cool special feature.
Line 61: Line 65:
| page = Blightbringer
| page = Blightbringer
| name = Example Bow #2
| name = Example Bow #2
| image = Longsword Icon.png
| icon = Shortbow PlusOne Unfaded Icon.png
| rarity = uncommon
| rarity = uncommon
| enchantment = +1
| enchantment = +1
Line 76: Line 80:
| page = Sword of the Emperor
| page = Sword of the Emperor
| name = Example Sword
| name = Example Sword
| image = Longsword Icon.png
| icon = Longsword +1 Unfaded Icon.png
| rarity = uncommon
| rarity = uncommon
| enchantment = +1
| enchantment = +1

Latest revision as of 06:46, 15 October 2024

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

Weapon Enchant. Damage Damage Type Weight Price Special


Blightbringer

+2

1d8 + 2
1d4
1d4

Slashing
Fire
Cold

18 kg
36 lb

400

  • Super cool special feature.


Blightbringer

+1

1d8
1d8

Slashing
Fire

18 kg
36 lb

400

  • Super cool special feature.


Sword of the Emperor

+1

1d8

Slashing

18 kg
36 lb

400