Template:DamageProfile

From EVE University Wiki
Revision as of 05:26, 7 November 2018 by Rothbard leviathan (talk | contribs) (test on non-zero)
Jump to: navigation, search


Template documentation (for the above template, sometimes hidden or invisible)
Description
This template creates damage profile graphs to be inserted into ammunition data tables. It only functions when included within another table. It creates four cells across, depicting a particular ammo type's EM, thermal, kinetic, and explosive damage profile.
Dependencies
Syntax
Type {{DamageProfile|<EM Damage>|<Thermal Damage>|<Kinetic Damage>|<Explosive Damage>}} somewhere. (It doesn't matter what size charge's data is used, as long as it's consistent. Output is in percentages.)
Sample output
{| class="wikitable"
|+
{{DamageProfileHeader}}
|-
{{DamageProfile|9|0|1|2}}
|-
{{DamageProfile|0|10|2|0}}
|-
{{DamageProfile|3|3|3|3}}
|}
gives...
Icon damage em.png
EM
Icon damage therm.png
Therm.
Icon damage kin.png
Kinetic
Icon damage exp.png
Exp.
75%
{{ #ifexpr: 0 = 0 | | | style="width:0%; background:OrangeRed;" |
0%
{{ #ifexpr: 1 = 0 | | | style="width:8.3333333333333%; background:Silver;" |
8%
17%



0%
{{ #ifexpr: 10 = 0 | | | style="width:83.333333333333%; background:OrangeRed;" | 83%
{{ #ifexpr: 2 = 0 | | | style="width:16.666666666667%; background:Silver;" |
17%
0%



25%
{{ #ifexpr: 3 = 0 | | | style="width:25%; background:OrangeRed;" |
25%
{{ #ifexpr: 3 = 0 | | | style="width:25%; background:Silver;" |
25%
25%



See also
Visit Template:DamageProfile/doc to edit this text! (How does this work?) (Refresh this text - why?)