Template:StatTable: Difference between revisions

From I-Pixelmon
Jump to navigation Jump to search
No edit summary
No edit summary
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="background: #{{{{{type|???}}} color}}; {{roundy|10px}}; border: 3px solid #{{{{{type2|{{{type|???}}}}}} color dark}}; border-collapse: separate; white-space: nowrap"
<includeonly><templatestyles src="Template:StatTable/styles.css"/>
|-
<!-- table border colour can be overridden via |frame=#rrggbb -->
! colspan="2" rowspan="2" style="background: #{{{{{type|???}}} color light}}; {{roundytl|10px}}" | {{color2|000|Stat}}
<div class="statbox">
! colspan="2" style="background: #{{{{{type|???}}} color light}}; {{roundytr|10px}}" | Range
<table style="border-color:{{{frame|#444}}}">
|-
 
! style="background: #{{{{{type|???}}} color light}};" | <small>At Lv. 50</small>
<tr>
! style="background: #{{{{{type|???}}} color light}};" | <small>At Lv. 100</small>
<th class="hdr-stat" colspan="2" rowspan="2">Stat</th>
|- style="background: #{{HP color light}}; text-align:center"
<th class="hdr-range" colspan="2">Range</th>
! style="padding-left: 0.2em; padding-right: 0.2em; display: flex; justify-content: space-between;" | <div>{{color2|000|HP}}:</div><div>{{{HP|1}}}</div>
</tr>
| style="width: 255px" | <div class="statbar" style="background-color: #{{HP color}}; border: 1px solid #{{HP color dark}}; width: calc(100% * {{{HP|1}}}/255); height:20px"></div>
<tr>
| <small>{{#ifexpr: {{{HP|1}}} = 1|1|{{#expr: ((0 + 2 * {{{HP|1}}} + (0/4)) * 50/100) + 10 + 50}}}} - {{#ifexpr: {{{HP|1}}} = 1|1|{{#expr: ((31 + 2 * {{{HP|1}}} + (252/4)) * 50/100) + 10 + 50}}}}</small>
<th class="hdr-sub">At Lv 50</th>
| <small>{{#ifexpr: {{{HP|1}}} = 1|1|{{#expr: ((0 + 2 * {{{HP|1}}} + (0/4)) * 100/100) + 10 + 100}}}} - {{#ifexpr: {{{HP|1}}} = 1|1|{{#expr: ((31 + 2 * {{{HP|1}}} + (252/4)) * 100/100) + 10 + 100}}}}</small>
<th class="hdr-sub">At Lv 100</th>
|- style="background: #{{Attack color light}}; text-align:center"
</tr>
! style="padding-left: 0.2em; padding-right: 0.2em; display: flex; justify-content: space-between;" | <div>{{color2|000|Stat#Attack|Attack}}:</div><div>{{{Attack|1}}}</div>
 
| style="width: 255px" | <div class="statbar" style="background-color: #{{Attack color}}; border: 1px solid #{{Attack color dark}}; width: calc(100% * {{{Attack|1}}}/255); height:20px"></div>
 
| <small>{{#expr: floor((((0 + 2 * {{{Attack|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Attack|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
<!-- HP -->
| <small>{{#expr: floor((((0 + 2 * {{{Attack|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Attack|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
<tr class="row-hp">
|- style="background: #{{Defense color light}}; text-align:center"
<td class="lab">HP:<span class=statnumber>{{{HP}}}</span></td>
! style="padding-left: 0.2em; padding-right: 0.2em; display: flex; justify-content: space-between;" | <div>{{color2|000|Stat#Defense|Defense}}:</div><div>{{{Defense|1}}}</div>
<td class="bar"><div class="fill" style="width:{{#expr: ( {{{HP|0}}} * 100 / 255 ) round 0}}%;"></div></td>
| style="width: 255px" | <div class="statbar" style="background-color: #{{Defense color}}; border: 1px solid #{{Defense color dark}}; width: calc(100% * {{{Defense|1}}}/255); height:20px"></div>
<td class="range"><small>{{#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>
| <small>{{#expr: floor((((0 + 2 * {{{Defense|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Defense|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
<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>
| <small>{{#expr: floor((((0 + 2 * {{{Defense|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Defense|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
 
|- style="background: #{{Special Attack color light}}; text-align:center"
<!-- Attack -->
! style="padding-left: 0.2em; padding-right: 0.2em; display: flex; justify-content: space-between;" | <div>{{color2|000|Stat#Special Attack|Sp. Atk}}:</div><div>{{{SpAtk|1}}}</div>
<tr class="row-atk">
| style="width: 255px" | <div class="statbar" style="background-color: #{{Special Attack color}}; border: 1px solid #{{Special Attack color dark}}; width: calc(100% * {{{SpAtk|1}}}/255); height:20px"></div>
<td class="lab">Attack:<span class=statnumber>{{{Attack}}}</span></td>
| <small>{{#expr: floor((((0 + 2 * {{{SpAtk|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{SpAtk|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
<td class="bar"><div class="fill" style="width:{{#expr: ( {{{Attack|0}}} * 100 / 255 ) round 0}}%;"></div></td>
| <small>{{#expr: floor((((0 + 2 * {{{SpAtk|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{SpAtk|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
<td class="range"><small>{{#expr:floor((((0+2*{{{Attack}}}+(0/4))*50/100)+5)*0.9)}}–{{#expr:floor((((31+2*{{{Attack}}}+(252/4))*50/100)+5)*1.1)}}</small></td>
|- style="background: #{{Special Defense color light}}; text-align:center"
<td class="range"><small>{{#expr:floor((((0+2*{{{Attack}}}+(0/4))*100/100)+5)*0.9)}}–{{#expr:floor((((31+2*{{{Attack}}}+(252/4))*100/100)+5)*1.1)}}</small></td>
! style="padding-left: 0.2em; padding-right: 0.2em; display: flex; justify-content: space-between;" | <div>{{color2|000|Stat#Special Defense|Sp. Def}}:</div><div>{{{SpDef|1}}}</div>
 
| style="width: 255px" | <div class="statbar" style="background-color: #{{Special Defense color}}; border: 1px solid #{{Special Defense color dark}}; width: calc(100% * {{{SpDef|1}}}/255); height:20px"></div>
</tr>
| <small>{{#expr: floor((((0 + 2 * {{{SpDef|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{SpDef|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
 
| <small>{{#expr: floor((((0 + 2 * {{{SpDef|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{SpDef|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
<!-- Defense -->
|- style="background: #{{Speed color light}}; text-align:center"
<tr class="row-def">
! style="padding-left: 0.2em; padding-right: 0.2em; display: flex; justify-content: space-between;" | <div>{{color2|000|Stat#Speed|Speed}}:</div><div>{{{Speed|1}}}</div>
<td class="lab">Defense:<span class=statnumber>{{{Defense}}}</span></td>
| style="width: 255px" | <div class="statbar" style="background-color: #{{Speed color}}; border: 1px solid #{{Speed color dark}}; width: calc(100% * {{{Speed|1}}}/255); height:20px"></div>
<td class="bar"><div class="fill" style="width:{{#expr: ( {{{Defense|0}}} * 100 / 255 ) round 0}}%;"></div></td>
| <small>{{#expr: floor((((0 + 2 * {{{Speed|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Speed|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
<td class="range"><small>{{#expr:floor((((0+2*{{{Defense}}}+(0/4))*50/100)+5)*0.9)}}–{{#expr:floor((((31+2*{{{Defense}}}+(252/4))*50/100)+5)*1.1)}}</small></td>
| <small>{{#expr: floor((((0 + 2 * {{{Speed|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Speed|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
<td class="range"><small>{{#expr:floor((((0+2*{{{Defense}}}+(0/4))*100/100)+5)*0.9)}}–{{#expr:floor((((31+2*{{{Defense}}}+(252/4))*100/100)+5)*1.1)}}</small></td>
|- style="background: #{{{{{type|???}}} color light}};"
 
! style="width: 6.5em; padding-left: 0.2em; padding-right: 0.2em; display: flex; justify-content: space-between;" | <div>Total:</div><div>{{#expr: {{{HP|1}}} + {{{Attack|1}}} + {{{Defense|1}}} + {{{SpAtk|1}}} + {{{SpDef|1}}} + {{{Speed|1}}}}}</div>
</tr>
| colspan="3" style="background: #{{{{{type|???}}} color light}}; padding-left:0.2em" | {{#if:{{{nocat|}}}||[[:Category:Pokémon with a base stat total of {{#expr: {{{HP|1}}} + {{{Attack|1}}} + {{{Defense|1}}} + {{{SpAtk|1}}} + {{{SpDef|1}}} + {{{Speed|1}}}}}|{{color|000|Other Pokémon with this total}}]]}}
 
|-
<!-- Sp. Atk -->
| colspan="4" style="background: #{{{{{type|???}}} color light}}; white-space:normal; font-size: smaller; width:min-content; {{roundybottom|10px}}" |
<tr class="row-spa">
*Minimum stats are calculated with 0 {{color2|000|Effort values|EVs}}, {{color2|000|Individual values|IVs}} of 0, and (if applicable) a hindering {{color2|000|nature}}.
<td class="lab">Sp.&nbsp;Atk:<span span class=statnumber>{{{SpAtk}}}</span></td>
*Maximum stats are calculated with 252 {{color2|000|Effort values|EVs}}, {{color2|000|Individual values|IVs}} of 31, and (if applicable) a helpful {{color2|000|nature}}.{{#if: {{{Special|}}}|
<td class="bar"><div class="fill" style="width:{{#expr: ( {{{SpAtk|0}}} * 100 / 255 ) round 0}}%;"></div></td>
*This Pokémon's [[Statistic#Special|<span style="background-color:#2F97E8; color:#000; padding-left: 0.5em; padding-right: 0.5em">Special</span>]] base stat in {{color2|000|Generation I}} was '''{{{Special}}}'''.}}
<td class="range"><small>{{#expr:floor((((0+2*{{{SpAtk}}}+(0/4))*50/100)+5)*0.9)}}–{{#expr:floor((((31+2*{{{SpAtk}}}+(252/4))*50/100)+5)*1.1)}}</small></td>
|}{{#if:{{{nocat|}}}||<includeonly>{{#ifeq:{{{cat|yes}}}|no||[[Category:Pokémon with a base stat total of {{#expr: {{{HP|1}}} + {{{Attack|1}}} + {{{Defense|1}}} + {{{SpAtk|1}}} + {{{SpDef|1}}} + {{{Speed|1}}}}}]]{{#ifeq:{{PAGESINCAT:Pokémon with a base stat total of {{#expr: {{{HP|1}}} + {{{Attack|1}}} + {{{Defense|1}}} + {{{SpAtk|1}}} + {{{SpDef|1}}} + {{{Speed|1}}}}}|pages}}|1|[[Category:Pokémon with a unique base stat total]]}}{{#ifexpr: ({{{Special|0}}} + {{{SpAtk|1}}} + {{{SpDef|1}}}) div 3 = {{{Special|0}}}|[[Category:Pokémon whose Special stat became both Special Attack and Special Defense]]|{{#ifexpr: {{{Special|0}}} = {{{SpAtk|1}}}|[[Category:Pokémon whose Special stat became their Special Attack]]}}{{#ifexpr: {{{Special|0}}} = {{{SpDef|1}}}|[[Category:Pokémon whose Special stat became their Special Defense]]}}}}{{#ifexpr: {{{HP|1}}} > 100|[[Category:Pokémon whose base HP stat is greater than 100]]}}{{#ifexpr: {{{Attack|1}}} > 100|[[Category:Pokémon whose base Attack stat is greater than 100]]}}{{#ifexpr: {{{Defense|1}}} > 100|[[Category:Pokémon whose base Defense stat is greater than 100]]}}{{#ifexpr: {{{SpAtk|1}}} > 100|[[Category:Pokémon whose base Special Attack stat is greater than 100]]}}{{#ifexpr: {{{SpDef|1}}} > 100|[[Category:Pokémon whose base Special Defense stat is greater than 100]]}}{{#ifexpr: {{{Special|1}}} > 100|[[Category:Pokémon whose base Special stat is greater than 100]]}}{{#ifexpr: {{{Speed|1}}} > 100|[[Category:Pokémon whose base Speed stat is greater than 100]]}}}}</includeonly>}}<noinclude>
<td class="range"><small>{{#expr:floor((((0+2*{{{SpAtk}}}+(0/4))*100/100)+5)*0.9)}}–{{#expr:floor((((31+2*{{{SpAtk}}}+(252/4))*100/100)+5)*1.1)}}</small></td>
{{Documentation}}
</tr>
[[Category:Templates]]</noinclude>
 
<!-- Sp. Def -->
<tr class="row-spd">
<td class="lab">Sp.&nbsp;Def:<span class=statnumber>{{{SpDef}}}</span></td>
<td class="bar"><div class="fill" style="width:{{#expr: ( {{{SpDef|0}}} * 100 / 255 ) round 0}}%;"></div></td>
<td class="range"><small>{{#expr:floor((((0+2*{{{SpDef}}}+(0/4))*50/100)+5)*0.9)}}–{{#expr:floor((((31+2*{{{SpDef}}}+(252/4))*50/100)+5)*1.1)}}</small></td>
<td class="range"><small>{{#expr:floor((((0+2*{{{SpDef}}}+(0/4))*100/100)+5)*0.9)}}–{{#expr:floor((((31+2*{{{SpDef}}}+(252/4))*100/100)+5)*1.1)}}</small></td>
 
</tr>
 
<!-- Speed -->
<tr class="row-spe">
<td class="lab">Speed:<span class=statnumber>{{{Speed}}}</span></td>
<td class="bar"><div class="fill" style="width:{{#expr: ( {{{Speed|0}}} * 100 / 255 ) round 0}}%;"></div></td>
<td class="range"><small>{{#expr:floor((((0+2*{{{Speed}}}+(0/4))*50/100)+5)*0.9)}}–{{#expr:floor((((31+2*{{{Speed}}}+(252/4))*50/100)+5)*1.1)}}</small></td>
<td class="range"><small>{{#expr:floor((((0+2*{{{Speed}}}+(0/4))*100/100)+5)*0.9)}}–{{#expr:floor((((31+2*{{{Speed}}}+(252/4))*100/100)+5)*1.1)}}</small></td>
 
</tr>
 
<!-- Total (no bar) -->
<tr class="total">
<td class="lab">Total:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>{{#expr:{{{HP}}}+{{{Attack}}}+{{{Defense}}}+{{{SpAtk}}}+{{{SpDef}}}+{{{Speed}}}}}</span></td>
<td class="bar"></td>
</tr>
 
</table>
</div></includeonly><noinclude>
<pre>{{StatTable
|HP=80 |Attack=82 |Defense=83 |SpAtk=100 |SpDef=100 |Speed=80
}}</pre>
{{StatTable|type=Dragon|HP=105|Attack=150|Defense=90|SpAtk=150|SpDef=90|Speed=95|Total=680}}
{{StatTable|type=Normal|HP=105|Attack=180|Defense=100|SpAtk=180|SpDef=100|Speed=115|Total=780}}
{{StatTable|type=Normal|HP=10|Attack=10|Defense=10|SpAtk=10|SpDef=10|Speed=10|Total=10}}
[[Category:Template documentation]]
</noinclude>

Latest revision as of 05:13, 2 June 2025

{{StatTable
 |HP=80 |Attack=82 |Defense=83 |SpAtk=100 |SpDef=100 |Speed=80
}}
Stat Range
At Lv 50 At Lv 100
HP:105
165–212 320–414
Attack:150
139–222 274–438
Defense:90
85–156 166–306
Sp. Atk:150
139–222 274–438
Sp. Def:90
85–156 166–306
Speed:95
90–161 175–317
Total:     680
Stat Range
At Lv 50 At Lv 100
HP:105
165–212 320–414
Attack:180
166–255 328–504
Defense:100
94–167 184–328
Sp. Atk:180
166–255 328–504
Sp. Def:100
94–167 184–328
Speed:115
108–183 211–361
Total:     780
Stat Range
At Lv 50 At Lv 100
HP:10
70–117 130–224
Attack:10
13–68 22–130
Defense:10
13–68 22–130
Sp. Atk:10
13–68 22–130
Sp. Def:10
13–68 22–130
Speed:10
13–68 22–130
Total:     60