Ad placeholder

Template:Weapon page: Difference between revisions

Jump to navigation Jump to search
Simplify by using MediaWiki's builtin dd/dt/dl syntax.
(Possibly better without a bulleted list)
(Simplify by using MediaWiki's builtin dd/dt/dl syntax.)
Line 63: Line 63:
<h2> Properties </h2>
<h2> Properties </h2>


<ul class="bg3wiki-property-list">
<div class="bg3wiki-property-list">
<li> {{#ifeq: {{{handedness}}} | versatile | One-handed damage: | Damage: }} </li>
; {{#ifeq: {{{handedness}}} | versatile | One-handed damage | Damage }}
<li> {{DamageInfo
: {{DamageInfo
| {{{damage}}}
| {{{damage}}}
| {{{damage type}}}
| {{{damage type}}}
| modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}} | {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }}
| modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}} | {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }}
}} </li> {{#ifeq: {{{handedness}}} | versatile |
}} {{#ifeq: {{{handedness}}} | versatile |
<li> Two-handed damage:</li>
; Two-handed damage
<li> {{DamageInfo
: {{DamageInfo
     | {{{versatile damage}}}
     | {{{versatile damage}}}
     | {{{damage type}}}
     | {{{damage type}}}
     | modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}}| {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }}
     | modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}}| {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }}
     }} </li>
     }}
}} {{#if: {{{extra damage|}}} |
}} {{#if: {{{extra damage|}}} |
<li> Extra damage:</li>
; Extra damage
<li> {{DamageInfo
: {{DamageInfo
     | {{#sub: {{{extra damage}}} | 0 | {{#rpos: {{{extra damage}}} | }} }}
     | {{#sub: {{{extra damage}}} | 0 | {{#rpos: {{{extra damage}}} | }} }}
     | {{#sub: {{{extra damage}}} | {{#expr: 1 + {{#rpos: {{{extra damage}}} | }} }} }}
     | {{#sub: {{{extra damage}}} | {{#expr: 1 + {{#rpos: {{{extra damage}}} | }} }} }}
     }} </li>
     }}
}} {{#if: {{{extra damage 2|}}} |
}} {{#if: {{{extra damage 2|}}} |
<li> {{DamageInfo
: {{DamageInfo
     | {{#sub: {{{extra damage 2}}} | 0 | {{#rpos: {{{extra damage 2}}} | }} }}
     | {{#sub: {{{extra damage 2}}} | 0 | {{#rpos: {{{extra damage 2}}} | }} }}
     | {{#sub: {{{extra damage 2}}} | {{#expr: 1 + {{#rpos: {{{extra damage 2}}} | }} }} }}
     | {{#sub: {{{extra damage 2}}} | {{#expr: 1 + {{#rpos: {{{extra damage 2}}} | }} }} }}
     }} </li>
     }}
}}
}}
<li> Details:</li>
; Details {{#if: {{{type|}}} |
{{#if: {{{type|}}} | <li> {{WeaponType | {{{type}}} }} </li>}}
: {{WeaponType | {{{type}}} }}  
<li> {{Rarity | {{{rarity|common}}} | {{{rarity honour|}}} }} </li>
<li> {{Enchantment | {{{enchantment|}}} }} </li>
{{#switch: {{{handedness}}}
| one-handed = <li>{{One-Handed}}</li>
| two-handed = <li>{{Two-Handed}}</li>
| versatile = <li>{{Versatile}}</li>
}} {{#if: {{{finesse|}}} | <li> {{Finesse}} </li>
}} {{#if: {{{light|}}} | <li> {{Light}} </li>
}} {{#if: {{{reach|}}} | <li> {{Reach}} </li>
}} {{#if: {{{thrown|}}} | <li> {{Thrown}} </li>
}} {{#if: {{{can't dual wield|}}} | <li> {{Can't Dual Wield}} </li>
}} {{#if: {{{dippable|}}} | <li> {{Dippable}} </li>
}}
}}
<li> {{#switch: {{{melee or ranged}}}
: {{Rarity | {{{rarity|common}}} | {{{rarity honour|}}} }}
: {{Enchantment | {{{enchantment|}}} }}
: {{#switch: {{{handedness}}}
| one-handed = {{One-Handed}}
| two-handed = {{Two-Handed}}
| versatile = {{Versatile}}
}} {{#if: {{{finesse|}}} | : {{Finesse}}
}} {{#if: {{{light|}}} | : {{Light}}
}} {{#if: {{{reach|}}} | : {{Reach}}
}} {{#if: {{{thrown|}}} | : {{Thrown}}
}} {{#if: {{{can't dual wield|}}} | : {{Can't Dual Wield}}
}} {{#if: {{{dippable|}}} | : {{Dippable}}
}}
: {{#switch: {{{melee or ranged}}}
| melee = {{Range| {{#if: {{{reach|}}} | reach | melee}} }}
| melee = {{Range| {{#if: {{{reach|}}} | reach | melee}} }}
| ranged =
| ranged =
Line 112: Line 113:
   | #default = {{Range| m = {{{range m}}} | ft = {{{range ft}}} }}
   | #default = {{Range| m = {{{range m}}} | ft = {{{range ft}}} }}
   }}
   }}
}} </li>
}}
<li> {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }} </li>
: {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }}
<li> {{Price | {{{price}}} | {{{price honour|}}} }}</li>
: {{Price | {{{price}}} | {{{price honour|}}} }}
{{#if:{{{uid|}}}{{{uuid|}}}|<li>{{SmallIcon|Ico stats.png}}{{#if:{{{uid|}}}|{{Uid|{{{uid}}}}} }} {{#if:{{{uuid|}}}|{{Uuid|{{{uuid}}}}} }}</li>}}
{{#if: {{{uid|}}} {{{uuid|}}} |
</ul>
: {{SmallIcon|Ico stats.png}} {{#if: {{{uid|}}} | {{Uid|{{{uid}}}}} }} {{#if:{{{uuid|}}}|{{Uuid|{{{uuid}}}}} }}
{{#if: {{{passives|}}}{{{passives main hand|}}}{{{passives off hand|}}}{{{special|}}} | {{blank}}
}}
</div>
{{#if: {{{passives|}}} {{{passives main hand|}}} {{{passives off hand|}}} {{{special|}}} |
<h3> Special </h3>
<h3> Special </h3>


Navigation menu