Template:Infobox item: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 68: Line 68:
-->{{#if:{{#show:{{FULLPAGENAME}}|?Damage=}}|{{#vardefine:$DPS|{{#expr:{{#show:{{FULLPAGENAME}}|?Damage=}} * {{#var:$attackspeed}}}}}}}}<!--
-->{{#if:{{#show:{{FULLPAGENAME}}|?Damage=}}|{{#vardefine:$DPS|{{#expr:{{#show:{{FULLPAGENAME}}|?Damage=}} * {{#var:$attackspeed}}}}}}}}<!--
// If dpsmodifier is given, multiply the current DPS (default 1 if not set) with the modifier and set the DPS variable to that
// If dpsmodifier is given, multiply the current DPS (default 1 if not set) with the modifier and set the DPS variable to that
-->{{#if:{{{dpsmodifier|}}}|{{#vardefine:$DPS={{#expr:{{#var:$DPS|1}} * {{{dpsmodifier|}}}}}}}}}<!--
-->{{#if:{{{dpsmodifier|}}}|{{#vardefine:$DPS|{{#expr:{{#var:$DPS|1}} * {{{dpsmodifier|}}}}}}}}}<!--
// Finally, if the DPS variable exists, set the DPS property
// Finally, if the DPS variable exists, set the DPS property
-->{{#varexists:$DPS|{{#set:DPS={{#var:$DPS}}}}}}<nowiki />
-->{{#varexists:$DPS|{{#set:DPS={{#var:$DPS}}}}}}<nowiki />

Navigation menu