Template:Infobox weapon: Difference between revisions

No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 11: Line 11:
}}
}}
<div class="dmg-type-row">
<div class="dmg-type-row">
<div class="dmg-type-cell {{{element}}}">{{#if: {{{element|}}} | {{#ifeq: {{{element}}} | none | | [[File:{{{element}}} damage icon.png|link=]] }} | }}</div>
<div class="dmg-type-cell {{{element}}}">{{#if: {{{element|}}} | {{#ifeq: {{{element}}} | none | | [[File:{{{element}}} damage icon.png|link=]] }} }}
</div>
<p>{{#replace:{{#replace:{{{element%|}}}| |}}|%|}}%</p>
<p>{{#if: {{{element|}}} | {{#replace:{{#replace:{{{element%|}}}| |}}|%|}}% | 0% }}</p>
</div>
</div>
{{#if: {{{range|}}} |
{{#if: {{{range|}}} |

Latest revision as of 02:54, 9 November 2024

Template documentation
This documentation is transcluded from Template:Infobox weapon/doc. [edit] [history] [purge]

Parameters

Rarity

Rarity of the item (Common, Uncommon, Rare, Epic). This changes the number of ★ as well as the color of the infobox.

Damage

Damage number

Element

Elemental damage type. Leave the field empty or type "none" in case the Elemental damage % below is "0".

  • none (or leave empty)
  • impact
  • cryonae
  • arborae
  • tempestae
  • infernae
  • necromae

Element %

Elemental damage %.

Range

Weapon range (Melee / 'number')

Slot

Weapon slot (one-hand / two-hand)

Quick copy

{{Infobox weapon
|rarity =
|damage = 
|element = 
|element% = 
|range = 
|slot = 
}}

Example

{{Infobox weapon
|rarity = uncommon
|damage = 89
|element = infernae
|element% = 49
|range = Melee
|slot = one-hand
}}

Produces the following example:

★ ★

89

49%

Melee

1-Hand