Difference between revisions of "Template:DamageProfile/doc"

From EVE University Wiki
Jump to: navigation, search
(Initial documentation)
 
m (Moved to the Category:Formatting templates)
 
(10 intermediate revisions by one other user not shown)
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:
:* Uses (some CSS, JS, file, or other template).<!-- delete if N/A -->
+
:* CSS
 +
:* [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions MediaWiki Parser Functions Extension]
 
;Syntax
 
;Syntax
 
: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><center></nowiki></code>
+
:<code><nowiki>{| class="wikitable"</nowiki></code>
:<code><nowiki>{| class="wikitable" style="text-align:center; background-color: #222; width:40%;"</nowiki></code>
+
:<code><nowiki>|+</nowiki></code>
 +
:<code><nowiki>{{DamageProfileHeader}}</nowiki></code>
 
:<code><nowiki>|-</nowiki></code>
 
:<code><nowiki>|-</nowiki></code>
:<code><nowiki>| style="width:4%; color: Cyan;" | {{icon|em damage}}<br />EM</nowiki></code>
+
:<code><nowiki>{{DamageProfile|9|0|1|2}}</nowiki></code>
:<code><nowiki>| style="width:4%; color: OrangeRed;" | {{icon|th damage}}<br />Therm.</nowiki></code>
 
:<code><nowiki>| style="width:4%; color: Silver;" | {{icon|ki damage}}<br />Kinetic</nowiki></code>
 
:<code><nowiki>| style="width:4%; color: Orange;" | {{icon|ex damage}}<br />Exp.</nowiki></code>
 
 
:<code><nowiki>|-</nowiki></code>
 
:<code><nowiki>|-</nowiki></code>
:<code><nowiki>{{DamageProfile|9|0|1|2}}</nowiki></code>
+
:<code><nowiki>{{DamageProfile|0|10|2|0}}</nowiki></code>
 +
:<code><nowiki>|-</nowiki></code>
 +
:<code><nowiki>{{DamageProfile|3|3|3|3}}</nowiki></code>
 
:<code><nowiki>|}</nowiki></code>
 
:<code><nowiki>|}</nowiki></code>
:<code><nowiki></center></nowiki></code>
 
 
::gives...
 
::gives...
 
<center>
 
<center>
{| class="wikitable" style="text-align:center; background-color: #222; width:40%;"
+
{| class="wikitable" style="width:25%;"
 +
|+
 +
{{DamageProfileHeader}}
 +
|-
 +
{{DamageProfile|9|0|1|2}}
 
|-
 
|-
| style="width:4%; color: Cyan;" | {{icon|em damage}}<br />EM
+
{{DamageProfile|0|10|2|0}}
| 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}}
+
{{DamageProfile|3|3|3|3}}
 
|}
 
|}
 
</center>
 
</center>
<!--
+
;See also:
;See also:<!-- delete if N/A
+
:* [[Template:DamageProfileHeader]]
:* [[Template:<!-- Some other template -->]]<!-- delete if N/A
+
:* [[Template:PercentageBar]]
:* [[<!-- Some other related page -->]]<!-- delete if N/A
+
:* [[Projectile ammunition]]
-->
+
 
<includeonly>[[Category:Template|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
+
<includeonly>[[Category:Formatting templates|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
 
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 21:15, 18 March 2021

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