Template:Infobox weapon: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 11: | Line 11: | ||
}} |
}} |
||
{{#if: {{{element|}}} | |
{{#if: {{{element|}}} | |
||
<div class="dmg-type-row"> |
<div class="dmg-type-row "> |
||
<div class="dmg-type-cell {{#invoke:Infobox weapon element parser|getElement|{{{element}}}}}">[[File:{{#invoke:Infobox weapon element parser|getElement|{{{element}}}}} damage icon.png|link=]]</div> |
<div class="dmg-type-cell {{#invoke:Infobox weapon element parser|getElement|{{{element}}}}}">[[File:{{#invoke:Infobox weapon element parser|getElement|{{{element}}}}} damage icon.png|link=]]</div> |
||
<p>{{#invoke:Infobox weapon element parser|getPercent|{{{element}}}}}</p> |
<p>{{#invoke:Infobox weapon element parser|getPercent|{{{element}}}}}</p> |
||
</div> |
</div> |
||
}} |
}} |
||
{{#if: {{{range|}}} | |
{{#if: {{{range|}}} | |
||
<div class="dmg-type-row"> |
<div class="dmg-type-row"> |
Revision as of 02:00, 9 November 2024
Template documentation
This documentation is transcluded from Template:Infobox weapon/doc. [edit] [history] [purge]
Template:Infobox weapon invokes function getElement in Module:Infobox weapon element parser using Lua.
Template:Infobox weapon invokes function getPercent in Module:Infobox weapon element parser using Lua.
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
<div class="dmg-type-cell Script error: No such module "Infobox weapon element parser".">[[File:Script error: No such module "Infobox weapon element parser". damage icon.png|link=]]
Script error: No such module "Infobox weapon element parser".
Melee
1-Hand