Template:StatTable: Difference between revisions

From I-Pixelmon
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
<td class="lab">HP:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>{{{HP}}}</span></td>
<td class="lab">HP:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>{{{HP}}}</span></td>
<td class="bar"><div class="fill" style="width:{{#expr: ( {{{HP|0}}} * 100 / 255 ) round 0}}%;"></div></td>
<td class="bar"><div class="fill" style="width:{{#expr: ( {{{HP|0}}} * 100 / 255 ) round 0}}%;"></div></td>
<td class="lab">{{#ifexpr:{{{HP}}}=1|1|{{#expr:((0+2*{{{HP}}}+(0/4))*50/100)+10+50}}}} – {{#ifexpr:{{{HP}}}=1|1|{{#expr:((31+2*{{{HP}}}+(252/4))*50/100)+10+50}}}}</td>
<td class="range">
<td class="lab">{{#ifexpr:{{{HP}}}=1|1|{{#expr:((0+2*{{{HP}}}+(0/4))*100/100)+10+100}}}} – {{#ifexpr:{{{HP}}}=1|1|{{#expr:((31+2*{{{HP}}}+(252/4))*100/100)+10+100}}}}</td>
<small>
</tr>
{{#ifexpr: {{{HP}}}=1 | 1
| {{#expr: ((0+2*{{{HP}}}+(0/4))*50/100)+10+50}}}}
{{#ifexpr: {{{HP}}}=1 | 1
| {{#expr: ((31+2*{{{HP}}}+(252/4))*50/100)+10+50}}}}
</small>
</td>
<td class="range">
<small>
{{#ifexpr: {{{HP}}}=1 | 1
| {{#expr: ((0+2*{{{HP}}}+(0/4))*100/100)+10+100}}}}
{{#ifexpr: {{{HP}}}=1 | 1
| {{#expr: ((31+2*{{{HP}}}+(252/4))*100/100)+10+100}}}}
</small>
</td>


<!-- Attack -->
<!-- Attack -->

Revision as of 06:41, 19 May 2025

{{StatTable
 |HP=80 |Attack=82 |Defense=83 |SpAtk=100 |SpDef=100 |Speed=80
}}