Template:Infobox item: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 59: Line 59:
   {{!}} class="infobox-detail" {{!}} {{{armorpen|}}} {{#set:Armorpen={{{armorpen}}}}}
   {{!}} class="infobox-detail" {{!}} {{{armorpen|}}} {{#set:Armorpen={{{armorpen}}}}}
}}<nowiki />
}}<nowiki />
{{#if:{{{attackspeed|}}} |<nowiki />
{{#if:{{{attackspeed|}}} |<!--
  // We define the attack speed based on attacks per second
  -->{{#vardefine:$attackspeed|{{#expr:{{{attackspeed}}} / 1000}}}}<nowiki />
   {{!}}-
   {{!}}-
   {{!}} class="infobox-section" {{!}} Attack speed:
   {{!}} class="infobox-section" {{!}} Attack speed:
   {{!}} class="infobox-detail" {{!}} {{{attackspeed|}}} ms {{#set:Attackspeed={{{attackspeed}}}}}<!--
   {{!}} class="infobox-detail" {{!}} <span title="{{{attackspeed}}} ms">{{{#var:$attackspeed}}}</span> {{#set:Attackspeed=$attackspeed}}<!--
// If we have set attack speed and damage, set the DPS too
// If we have set attack speed and damage, set the DPS too
-->{{#if:{{#show:{{FULLPAGENAME}}|?Damage=}}|{{#set:DPS={{#expr:{{#show:{{FULLPAGENAME}}|?Damage=}} / ({{{attackspeed}}} / 1000)}}}}}}<nowiki />
-->{{#if:{{#show:{{FULLPAGENAME}}|?Damage=}}|{{#set:DPS={{#expr:{{#show:{{FULLPAGENAME}}|?Damage=}} / {{#var:$attackspeed}}}}}}}}<nowiki />
}}<nowiki />
}}<nowiki />
{{#if:{{{attackcooldown|}}} |<nowiki />
{{#if:{{{attackcooldown|}}} |<nowiki />

Navigation menu