Template:Infobox item: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 66: Line 66:
   {{!}} class="infobox-detail" {{!}} <span title="Attacks per second ({{{attackspeed}}} ms)">{{#var:$attackspeed}}</span> {{#set:Attackspeed={{#var:$attackspeed}}}}<!--
   {{!}} class="infobox-detail" {{!}} <span title="Attacks per second ({{{attackspeed}}} ms)">{{#var:$attackspeed}}</span> {{#set:Attackspeed={{#var:$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=}} * {{#var:$attackspeed}}}}}}}}<nowiki />
-->{{#if:{{#show:{{FULLPAGENAME}}|?Damage=}}|{{#set:DPS={{#expr:{{#show:{{FULLPAGENAME}}|?Damage=}} * {{#var:$attackspeed}}}}}}}}<!--
// If dpsmodifier is given, multiply the dps
-->{{#if:{{{dpsmodifier|}}}|{{#set:DPS={{#expr:{{#show:{{FULLPAGENAME}}|?DPS=|default=1}} * {{{dpsmodifier|}}}}}}}}}<!--
<nowiki />
}}<nowiki />
}}<nowiki />
{{#if:{{{attackcooldown|}}} |<nowiki />
{{#if:{{{attackcooldown|}}} |<nowiki />

Navigation menu