Difference between revisions of "User:JenovaSPIRIT/ShieldDMGPercent"
From SpiralKnights
JenovaSPIRIT (Talk | contribs) m |
JenovaSPIRIT (Talk | contribs) m |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | Testing to create a template using enormous skillful mastermind coding copy-paste techniques :D | + | Testing to create a template using enormous skillful mastermind coding copy-paste techniques :D<br> |
<nowiki>Parameters are called using {{{#}}} in the order in which they appear in templates and can be used for calculations.</nowiki> | <nowiki>Parameters are called using {{{#}}} in the order in which they appear in templates and can be used for calculations.</nowiki> | ||
− | This | + | This template requires: <br> |
+ | 1. the amount of pixel while the shield got max health <br> | ||
+ | 2. the remaining pixels at the first depth of a stratum <br> | ||
+ | 3. the remaining pixels at the last depth of a stratum <br> | ||
+ | 4. me to figure out how this coding stuff makes no errors if you enter a question mark instead of a number :x <br> | ||
<nowiki>{{User:JenovaSPIRIT/ShieldDMGPercent|25|1|0|0}}</nowiki><br> | <nowiki>{{User:JenovaSPIRIT/ShieldDMGPercent|25|1|0|0}}</nowiki><br> | ||
to display<br> | to display<br> | ||
− | {{User:JenovaSPIRIT/ShieldDMGPercent| | + | {{User:JenovaSPIRIT/ShieldDMGPercent|360|72|71|0}} |
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
− | With | + | With shield max pixels: {{{1}}}, first depth of stratum's remaining pixel {{{2}}} last depth of stratum's remaining pixels {{{3}}}, and Frenzied Firestorm, which does definitelly not exist in this calculation...<br> |
− | Yields: {{#expr: ceil ({{{1}}} | + | Yields: {{#expr: ceil (({{{1}}}-{{{2}}}))/{{{1}}}*100}}% - {{#expr: ceil (({{{1}}}-{{{3}}}))/{{{1}}}*100}}% damage. |
</includeonly> | </includeonly> |
Revision as of 12:11, 28 May 2017
Testing to create a template using enormous skillful mastermind coding copy-paste techniques :D
Parameters are called using {{{#}}} in the order in which they appear in templates and can be used for calculations.
This template requires:
1. the amount of pixel while the shield got max health
2. the remaining pixels at the first depth of a stratum
3. the remaining pixels at the last depth of a stratum
4. me to figure out how this coding stuff makes no errors if you enter a question mark instead of a number :x
{{User:JenovaSPIRIT/ShieldDMGPercent|25|1|0|0}}
to display
80% - 80.3%