Template:WeaponsTableRow: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude>Sample: {| class="wikitable" ! Weapon !! Enchantment !! Damage !! Weight !! Price !! Special {{WeaponTableRow | name = Example Sword | image = Longsword Icon.png | rarity = uncommon | enchantment = +1 | damage = 1d8 | weight kg = 18 | weight lb = 36 | price = 400 | special = * Super cool special feature. }} |}</noinclude><includeonly><tr> <td style="text-align: center; vertical-align: middle;"> [[File:{{{image}}}|frameless|80px|link={{{name}}}]] <br> {{{na...") |
HiddenDragon (talk | contribs) (Use new image rarity item template) |
||
(43 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>Sample: | <includeonly><tr> | ||
<td> | |||
{{Image rarity item/Format | |||
| page = {{{page}}} | |||
| icon = {{{icon}}} | |||
| rarity = {{{rarity}}} | |||
}} | |||
</td> | |||
<td>{{{enchantment}}}</td> | |||
<td> | |||
{{{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> | |||
{{#if: {{{weight kg|}}} | |||
<!-- #8239 is non-breaking thin space. And yes, the kg to lb factor in BG3 is exactly 1/2. --> | |||
| {{{weight kg}}} kg <br> {{#expr:{{{weight kg|}}}*2}} lb | |||
| {{#expr:{{{weight lb}}}/2}} kg <br> {{{weight lb}}} lb | |||
}} | |||
</td> | |||
<td>{{{price}}}</td> | |||
<td> | |||
{{#if: {{{weapon passives|}}} | | |||
{{#invoke: ParseList | main | {{{weapon passives}}} | useTemplate = Passive | type = none }} | |||
}}{{#if: {{{passives main hand|}}} | {{blank}} | |||
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> | |||
</tr></includeonly><noinclude>For use with Cargo queries; see [[Template:WeaponTypePage]]. | |||
[[Category:Templates]] | |||
Sample: | |||
{| | {{WeaponsTableHeader}} | ||
{{WeaponsTableRow | |||
{{ | | page = Blightbringer | ||
| name = Example Bow #1 | |||
| icon = Shortbow PlusOne Unfaded Icon.png | |||
| rarity = very rare | |||
| enchantment = +2 | |||
| damage = 1d8 + 2 | |||
| damage type = Slashing | |||
| extra damage = 1d4 | |||
| extra damage type = Fire | |||
| extra damage 2= 1d4 | |||
| extra damage 2 type = Cold | |||
| weight kg = 18 | |||
| weight lb = 36 | |||
| price = 400 | |||
| passives = Chilling Counter | |||
| special = | |||
* Super cool special feature. | |||
}}{{WeaponsTableRow | |||
| page = Blightbringer | |||
| name = Example Bow #2 | |||
| icon = Shortbow PlusOne Unfaded Icon.png | |||
| rarity = uncommon | |||
| enchantment = +1 | |||
| damage = 1d8 | |||
| damage type = Slashing | |||
| extra damage = 1d8 | |||
| extra damage type = Fire | |||
| weight kg = 18 | |||
| weight lb = 36 | |||
| price = 400 | |||
| special = | |||
* Super cool special feature. | |||
}}{{WeaponsTableRow | |||
| page = Sword of the Emperor | |||
| name = Example Sword | | name = Example Sword | ||
| | | icon = Longsword +1 Unfaded Icon.png | ||
| rarity = uncommon | | rarity = uncommon | ||
| enchantment = +1 | | enchantment = +1 | ||
| damage = 1d8 | | damage = 1d8 | ||
| damage type = Slashing | |||
| weight kg = 18 | | weight kg = 18 | ||
| weight lb = 36 | | weight lb = 36 | ||
Line 14: | Line 90: | ||
| special = | | special = | ||
* Super cool special feature. | * Super cool special feature. | ||
| legacy = inaccessible | |||
}} | }} | ||
{{WeaponsTableFooter}}</noinclude> | |||
</ | |||
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 |
---|---|---|---|---|---|---|
+2 |
1d8 + 2 |
Slashing |
18 kg |
400 |
|
|
+1 |
1d8 |
Slashing |
18 kg |
400 |
|
|
+1 |
1d8 |
Slashing |
18 kg |
400 |
|