Template:Infobox weapon: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(29 intermediate revisions by the same user not shown)
Line 6:
{{#if: {{{damage|}}} |
<div class="dmg-type-row">
<div class="dmg-type-cell damage">{{#if: {{{damage|}}} | [[File:Damage icon.png|link=]] }}</div>
<p>{{{damage}}}</p>
</div>
}}
{{#if: {{{element|}}} |
<div class="dmg-type-row">
<div class="dmg-type-cell {{{element}}}">{{#if: {{{element|}}} | {{#ifeq: {{{element}}} | none | | [[File:Necrotic{{{element}}} damage icon.png|link=]] }}</div> }}
<p>{{{element}}}</p>
</div>
<p>{{#if: {{{element|}}} | {{#replace:{{#replace:{{{element%|}}}| |}}|%|}}% | 0% }}</p>
}}
</div>
{{#if: {{{type|}}} |
{{#if: {{{elementrange|}}} |
<div class="dmg-type-row">
<div class="dmg-type-cell typerange">{{#if: {{{typerange|}}} | [[File:Weapon typerange icon.png|link=]] }}</div>
<p>{{{typerange}}}</p>
</div>
}}
{{#if: {{{handslot|}}} |
<div class="dmg-type-row">
<div class="dmg-type-cell {{{handslot}}}">{{#switch: {{{handslot}}} | 1one-hand = [[File:1-Hand icon.png|link=]] | 2two-hand = [[File:2-Hand icon.png|link=]] }}</div>
<p>{{#switch: {{{handslot}}} | one-hand = 1-Hand | 2two-hand = 2-Hand }}</p>
</div>
}}