Editing Template:Infobox weapon
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 6: | Line 6: | ||
{{#if: {{{damage|}}} | |
{{#if: {{{damage|}}} | |
||
<div class="dmg-type-row"> |
<div class="dmg-type-row"> |
||
<div class="dmg-type-cell damage">{{#if: {{{damage|}}} | [[File:Damage icon.png |
<div class="dmg-type-cell damage">{{#if: {{{damage|}}} | [[File:Damage icon.png]] }}</div> |
||
<p>{{{damage}}}</p> |
<p>{{{damage}}}</p> |
||
</div> |
</div> |
||
}} |
}} |
||
{{#if: {{{element|}}} | |
|||
<div class="dmg-type-row"> |
<div class="dmg-type-row"> |
||
<div class="dmg-type-cell |
<div class="dmg-type-cell element">{{#if: {{{element|}}} | [[File:Necrotic damage icon.png]] }}</div> |
||
<p>{{{element}}}</p> |
|||
</div> |
|||
<p>{{#if: {{{element|}}} | {{#replace:{{#replace:{{{element%|}}}| |}}|%|}}% | 0% }}</p> |
|||
</div> |
</div> |
||
}} |
|||
{{#if: {{{range|}}} | |
{{#if: {{{range|}}} | |
||
<div class="dmg-type-row"> |
<div class="dmg-type-row"> |
||
<div class="dmg-type-cell |
<div class="dmg-type-cell type">{{#if: {{{range|}}} | [[File:Weapon range icon.png]] }}</div> |
||
<p>{{{range}}}</p> |
<p>{{{range}}}</p> |
||
</div> |
</div> |
||
Line 23: | Line 24: | ||
{{#if: {{{slot|}}} | |
{{#if: {{{slot|}}} | |
||
<div class="dmg-type-row"> |
<div class="dmg-type-row"> |
||
<div class="dmg-type-cell {{{slot}}}">{{#switch: {{{slot}}} | one-hand = [[File:1-Hand icon.png |
<div class="dmg-type-cell {{{slot}}}">{{#switch: {{{slot}}} | one-hand = [[File:1-Hand icon.png]] | two-hand = [[File:2-Hand icon.png]] }}</div> |
||
<p>{{#switch: {{{slot}}} | one-hand = 1-Hand | two-hand = 2-Hand }}</p> |
<p>{{#switch: {{{slot}}} | one-hand = 1-Hand | two-hand = 2-Hand }}</p> |
||
</div> |
</div> |