Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Suppressors, Administrators
3,324
edits
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 | {{!}} 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=}} / | -->{{#if:{{#show:{{FULLPAGENAME}}|?Damage=}}|{{#set:DPS={{#expr:{{#show:{{FULLPAGENAME}}|?Damage=}} / {{#var:$attackspeed}}}}}}}}<nowiki /> | ||
}}<nowiki /> | }}<nowiki /> | ||
{{#if:{{{attackcooldown|}}} |<nowiki /> | {{#if:{{{attackcooldown|}}} |<nowiki /> |