Template:Infobox weapon: Difference between revisions

no edit summary
(Created page with "<includeonly><div class="infobox-equipment {{lc:{{{rarity}}}}}"> <div class="rarity-wrapper"> <p>{{#switch: {{lc:{{{rarity}}}}} | common = ★ | uncommon = ★ ★ | rare = ★ ★ ★ | epic = ★ ★ ★ ★ }}</p> </div> <div class="dmg-types-wrapper"> {{#if: {{{damage|}}} | <div class="dmg-type-row"> <div class="dmg-type-cell damage">{{#if: {{{damage|}}} | File:Damage icon.png }}</div> <p>{{{damage}}}</p> </div> }} {{#if: {{{elemental|}}} | <div class="dmg-type-r...")
 
No edit summary
 
(34 intermediate revisions by the same user not shown)
Line 1:
<includeonly><div class="infobox-equipmentweapon {{lc:{{{rarity}}}}}">
<div class="rarity-wrapper">
<p>{{#switch: {{lc:{{{rarity}}}}} | common = ★ | uncommon = ★ ★ | rare = ★ ★ ★ | epic = ★ ★ ★ ★ }}</p>
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: {{{elemental|}}} |
<div class="dmg-type-row">
<div class="dmg-type-cell elemental{{{element}}}">{{#if: {{{elementalelement|}}} | {{#ifeq: {{{element}}} | none | | [[File:Necrotic{{{element}}} damage icon.png|link=]] }}</div> }}
<p>{{{elemental}}}</p>
</div>
<p>{{#if: {{{element|}}} | {{#replace:{{#replace:{{{element%|}}}| |}}|%|}}% | 0% }}</p>
}}
</div>
{{#if: {{{type|}}} |
{{#if: {{{elementalrange|}}} |
<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 {{{slot}}}">{{#switch: {{{slot}}} | one-hand = [[File:1-Hand icon.png|link=]] | two-hand = [[File:2-Hand icon.png|link=]] }}</div>
<div class="dmg-type-cell hand">
<p>{{#switch: {{{handslot}}} | one-hand = 1-Hand | two-hand = 2-Hand }}</p>
| 1 = [[File:1-Hand icon.png]]
| 2 = [[File:2-Hand icon.png]]
}}
</div>
<p>
{{#switch: {{{hand}}}
| 1 = 1-Hand
| 2 = 2-Hand
}}
</p>
</div>
}}