Difference between revisions of "Template:DamageProfile/doc"

From EVE University Wiki
Jump to: navigation, search
(Initial documentation)
 
(remove errant brackets)
Line 35: Line 35:
 
:* [[<!-- Some other related page -->]]<!-- delete if N/A  
 
:* [[<!-- Some other related page -->]]<!-- delete if N/A  
 
-->
 
-->
<includeonly>[[Category:Template|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
+
<!--<includeonly>[[Category:Template|{{PAGENAME}}]]<!-- Any categories for the template itself </includeonly>-->
 
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 05:48, 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
  • Uses (some CSS, JS, file, or other template).
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
<center>
{| class="wikitable" style="text-align:center; background-color: #222; width:40%;"
|-
| style="width:4%; color: Cyan;" | {{icon|em damage}}<br />EM
| style="width:4%; color: OrangeRed;" | {{icon|th damage}}<br />Therm.
| style="width:4%; color: Silver;" | {{icon|ki damage}}<br />Kinetic
| style="width:4%; color: Orange;" | {{icon|ex damage}}<br />Exp.
|-
{{DamageProfile|9|0|1|2}}
|}
</center>
gives...
Icon damage em.png
EM
Icon damage therm.png
Therm.
Icon damage kin.png
Kinetic
Icon damage exp.png
Exp.
75%
 
8%
17%

]]]]