Difference between revisions of "Template:TotalDamage"
Jump to navigation
Jump to search
old>Phoe nixx (Created page with "<includeonly>{{#expr| {{#if: {{:{{{1}}}|Damage1}} | {{:{{{1}}}|Damage1}} | 0 }} + {{#if: {{:{{{1}}}|Damage2}} | {{:{{{1}}}|Damage2}} | 0 }} + {{#if: {{:{{{1}}}|Damage3}} | {{:...") |
(use Data page instead of old way) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly><!-- | ||
{{# | -->{{#vardefine:Slashing Damage|{{:Data|{{{1}}}|Slashing Damage}}}}<!-- | ||
{{# | -->{{#vardefine:Piercing Damage|{{:Data|{{{1}}}|Piercing Damage}}}}<!-- | ||
{{#if: {{:{{{ | -->{{#vardefine:Crushing Damage|{{:Data|{{{1}}}|Crushing Damage}}}}<!-- | ||
{{#if: {{:{{{ | -->{{#vardefine:Rending Damage|{{:Data|{{{1}}}|Rending Damage}}}}<!-- | ||
-->{{#vardefine:Fire Damage|{{:Data|{{{1}}}|Fire Damage}}}}<!-- | |||
-->{{#vardefine:Frost Damage|{{:Data|{{{1}}}|Frost Damage}}}}<!-- | |||
-->{{#vardefine:Shock Damage|{{:Data|{{{1}}}|Shock Damage}}}}<!-- | |||
-->{{#vardefine:Poison Damage|{{:Data|{{{1}}}|Poison Damage}}}}<!-- | |||
-->{{#vardefine:Caustic Damage|{{:Data|{{{1}}}|Caustic Damage}}}}<!-- | |||
-->{{#vardefine:Arcane Damage|{{:Data|{{{1}}}|Arcane Damage}}}}<!-- | |||
-->{{#vardefine:Sacred Damage|{{:Data|{{{1}}}|Sacred Damage}}}}<!-- | |||
-->{{#vardefine:Unholy Damage|{{:Data|{{{1}}}|Unholy Damage}}}}<!-- | |||
-->{{#vardefine:Psionic Damage|{{:Data|{{{1}}}|Psionic Damage}}}}<!-- | |||
-->{{#expr: | |||
{{#if: {{#var:Slashing Damage}} | {{#var:Slashing Damage}} | 0 }} + | |||
{{#if: {{#var:Piercing Damage}} | {{#var:Piercing Damage}} | 0 }} + | |||
{{#if: {{#var:Crushing Damage}} | {{#var:Crushing Damage}} | 0 }} + | |||
{{#if: {{#var:Rending Damage}} | {{#var:Rending Damage}} | 0 }} + | |||
{{#if: {{#var:Fire Damage}} | {{#var:Fire Damage}} | 0 }} + | |||
{{#if: {{#var:Frost Damage}} | {{#var:Frost Damage}} | 0 }} + | |||
{{#if: {{#var:Shock Damage}} | {{#var:Shock Damage}} | 0 }} + | |||
{{#if: {{#var:Poison Damage}} | {{#var:Poison Damage}} | 0 }} + | |||
{{#if: {{#var:Caustic Damage}} | {{#var:Caustic Damage}} | 0 }} + | |||
{{#if: {{#var:Arcane Damage}} | {{#var:Arcane Damage}} | 0 }} + | |||
{{#if: {{#var:Sacred Damage}} | {{#var:Sacred Damage}} | 0 }} + | |||
{{#if: {{#var:Unholy Damage}} | {{#var:Unholy Damage}} | 0 }} + | |||
{{#if: {{#var:Psionic Damage}} | {{#var:Psionic Damage}} | 0 }} | |||
}}</includeonly><noinclude>{{Doc}} | }}</includeonly><noinclude>{{Doc}} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 19:09, 28 May 2022
Documentation
[purge]
This template is used for calculation of the total damage of a particular weapon.
Only one parameter is used - Weapon's page name.
Usage:
{{TotalDamage|Rusty Sword}}
Result:
0