More actions
shrink the width of the example output |
add additional example lines |
||
| Line 7: | Line 7: | ||
: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" style="text-align:center; background-color: #222; width:25%;"</nowiki></code> | ||
:<code><nowiki>|-</nowiki></code> | :<code><nowiki>|-</nowiki></code> | ||
| Line 16: | Line 15: | ||
:<code><nowiki>|-</nowiki></code> | :<code><nowiki>|-</nowiki></code> | ||
:<code><nowiki>{{DamageProfile|9|0|1|2}}</nowiki></code> | :<code><nowiki>{{DamageProfile|9|0|1|2}}</nowiki></code> | ||
:<code><nowiki>|-</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> | ||
::gives... | ::gives... | ||
<center> | <center> | ||
| Line 28: | Line 30: | ||
|- | |- | ||
{{DamageProfile|9|0|1|2}} | {{DamageProfile|9|0|1|2}} | ||
|- | |||
{{DamageProfile|0|10|2|0}} | |||
|- | |||
{{DamageProfile|3|3|3|3}} | |||
|} | |} | ||
</center> | </center> | ||
Revision as of 06:23, 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
{| class="wikitable" style="text-align:center; background-color: #222; width:25%;"|-| 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}}|-{{DamageProfile|0|10|2|0}}|-{{DamageProfile|3|3|3|3}}|}- gives...
EM |
Therm. |
Kinetic |
Exp. | ||||||||
|
|
|
| ||||||||
|
|
|
|
| ||||||||
|
|
|
|