Difference between revisions of "Template:DamageProfile/doc"

From EVE University Wiki
Jump to: navigation, search
(simplify example)
Line 8: Line 8:
 
:Type <code>{{t|DamageProfile|EM Damage|Thermal Damage|Kinetic Damage|Explosive Damage}}</code> somewhere. (It doesn't matter what size charge's data is used, as long as it's consistent. Output is in percentages.)
 
:Type <code>{{t|DamageProfile|EM Damage|Thermal Damage|Kinetic Damage|Explosive Damage}}</code> somewhere. (It doesn't matter what size charge's data is used, as long as it's consistent. Output is in percentages.)
 
;Sample output
 
;Sample output
:<code><nowiki>{| class="wikitable" style="text-align:center; background-color: #222; width:25%;"</nowiki></code>
+
:<code><nowiki>{| class="wikitable"</nowiki></code>
 
:<code><nowiki>|-</nowiki></code>
 
:<code><nowiki>|-</nowiki></code>
 
:<code><nowiki>{{DamageProfileHeader}}</nowiki></code>
 
:<code><nowiki>{{DamageProfileHeader}}</nowiki></code>
Line 20: Line 20:
 
::gives...
 
::gives...
 
<center>
 
<center>
{| class="wikitable" style="text-align:center; background-color: #222; width:25%;"
+
{| class="wikitable" style="width:25%;"
 
|-
 
|-
 
{{DamageProfileHeader}}
 
{{DamageProfileHeader}}

Revision as of 07:22, 7 November 2018

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%
 
8%
17%
 
83%
17%
 
25%
25%
25%
25%
See also