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/doc: Difference between revisions

Template page
add {{PercentageBar}} template to See Also
m remove extraneous comment
Line 2: Line 2:
;Description
;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.
: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:<!-- delete if N/A -->
;Dependencies:
:* CSS
:* CSS
:* [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions MediaWiki Parser Functions Extension]
:* [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions MediaWiki Parser Functions Extension]

Revision as of 08:01, 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...

EM

Therm.

Kinetic

Exp.
75%
 
8%
17%
 
83%
17%
 
25%
25%
25%
25%
See also