Template:WeaponsTableRow: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Remove styles (added to MW:Common.css and MW:Mobile.css).)
(Use new image rarity item template)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><tr>
<includeonly><tr>
<td>
<td>
{{ItemIcon Internal
{{Image rarity item/Format
|{{{icon}}}
| page = {{{page}}}
|50
| icon = {{{icon}}}
|{{#replace:{{{rarity}}}|<nowiki> </nowiki>|-}}
| rarity = {{{rarity}}}
|true
}}
|{{{page}}}
|missing=true}}<br>
[[{{{page}}} | <span style="color: {{#switch: {{{rarity}}}
| common = #FFFFFF
| uncommon = #01BD39
| rare = #01BFFF
| very rare = #D1017B
| legendary = #B7861D
| story = #FF5901
}};">{{{page}}}</span> ]]
</td>
</td>
<td>{{{enchantment}}}</td>
<td>{{{enchantment}}}</td>
Line 33: Line 23:
<td>{{{price}}}</td>
<td>{{{price}}}</td>
<td>
<td>
{{#if: {{{passives|}}} |
{{#if: {{{weapon passives|}}} |
{{#invoke: ParseList | main | {{{passives}}} | useTemplate = Passive | type = htmlList }}
{{#invoke: ParseList | main | {{{weapon passives}}} | useTemplate = Passive | type = none }}
}}{{#if: {{{passives main hand|}}} | {{blank}}
}}{{#if: {{{passives main hand|}}} | {{blank}}
Main Hand Only
Main Hand Only
{{#invoke: ParseList | main | {{{passives main hand}}} | useTemplate = Passive | type = htmlList }}
{{#invoke: ParseList | main | {{{passives main hand}}} | useTemplate = Passive | type = none }}
}}{{#if: {{{passives off hand|}}} | {{blank}}
}}{{#if: {{{passives off hand|}}} | {{blank}}
Off-Hand Only
Off-Hand Only
{{#invoke: ParseList | main | {{{passives off hand}}} | useTemplate = Passive | type = htmlList }}
{{#invoke: ParseList | main | {{{passives off hand}}} | useTemplate = Passive | type = none }}
}}{{#if: {{{special|}}} | {{blank}}
}}{{#if: {{{special|}}} | {{blank}}
{{{special}}}
{{{special}}}
}}{{#if: {{{special weapon actions|}}} | {{blank}}
}}{{#if: {{{special weapon actions|}}} | {{blank}}
{{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction | type = htmlList }}
{{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction | type = none }}
}}{{#if: {{{legacy|}}} | {{blank}}
}}{{#if: {{{legacy|}}} | {{blank}}
* {{Legacy content/notice|{{{legacy}}} }}
* {{Legacy content/notice|{{{legacy}}} }}

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