Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:DamageProfile: Difference between revisions

Template page
fix width formulae
test zero case
Line 9: Line 9:
     {| style="width:100%;"
     {| style="width:100%;"
     |-
     |-
     | style="width:{{#expr: 100 * {{{2}}} / ( {{{1}}} + {{{2}}} + {{{3}}} + {{{4}}} ) }}%; background:OrangeRed;" | {{#expr: 100 * {{#expr: {{{2}}} / ( {{{1}}} + {{{2}}} + {{{3}}} + {{{4}}} ) round 2 }} }}%
     | {{ #ifexpr: {{{2}}} = 0 | | <nowiki> style="width:{{#expr: 100 * {{{2}}} / ( {{{1}}} + {{{2}}} + {{{3}}} + {{{4}}} ) }}%; background:OrangeRed;" | {{#expr: 100 * {{#expr: {{{2}}} / ( {{{1}}} + {{{2}}} + {{{3}}} + {{{4}}} ) round 2 }} }}%</nowiki> }}
     | style="background:#903411;" |
     | style="background:#903411;" |
     |}
     |}