Template:Stats: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Changing the way that the bars are drawn so that they display at the correct width on vertical mobile)
No edit summary
Line 7: Line 7:
! style="background: #{{{{{type|???}}} color light}};" | <small>At Lv. 100</small>
! style="background: #{{{{{type|???}}} color light}};" | <small>At Lv. 100</small>
|- style="background: #{{HP color light}}; text-align:center"
|- style="background: #{{HP color light}}; text-align:center"
! style="width:85px; padding-left:0.5em; padding-right:0.5em" | <div style="float:left">{{color2|000|Statistic#Hit Points|HP}}:</div><div style="float:right">{{{HP|1}}}</div>
! style="width:85px; padding-left:0.5em; padding-right:0.5em" | <div style="float:left">{{color2|000|HP}}:</div><div style="float:right">{{{HP|1}}}</div>
| 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>
| 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>
| <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>
| <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>
| <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>
| <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>
|- style="background: #{{Attack color light}}; text-align:center"
|- style="background: #{{Attack color light}}; text-align:center"
! style="width:85px; padding-left:0.5em; padding-right:0.5em" | <div style="float:left">{{color2|000|Statistic#Attack|Attack}}:</div><div style="float:right">{{{Attack|1}}}</div>
! style="width:85px; padding-left:0.5em; padding-right:0.5em" | <div style="float:left">{{color2|000|Stat#Attack|Attack}}:</div><div style="float:right">{{{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>
| 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>
| <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>
| <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>
| <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>
|- style="background: #{{Defense color light}}; text-align:center"
|- style="background: #{{Defense color light}}; text-align:center"
! style="width:85px; padding-left:0.5em; padding-right:0.5em" | <div style="float:left">{{color2|000|Statistic#Defense|Defense}}:</div><div style="float:right">{{{Defense|1}}}</div>
! style="width:85px; padding-left:0.5em; padding-right:0.5em" | <div style="float:left">{{color2|000|Stat#Defense|Defense}}:</div><div style="float:right">{{{Defense|1}}}</div>
| 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>
| 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>
| <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>
| <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>
| <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>
| <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"
|- style="background: #{{Special Attack color light}}; text-align:center"
! style="width:85px; padding-left:0.5em; padding-right:0.5em" | <div style="float:left">{{color2|000|Statistic#Special Attack|Sp. Atk}}:</div><div style="float:right">{{{SpAtk|1}}}</div>
! style="width:85px; padding-left:0.5em; padding-right:0.5em" | <div style="float:left">{{color2|000|Stat#Special Attack|Sp. Atk}}:</div><div style="float:right">{{{SpAtk|1}}}</div>
| 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>
| 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>
| <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>
| <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>
| <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>
| <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>
|- style="background: #{{Special Defense color light}}; text-align:center"
|- style="background: #{{Special Defense color light}}; text-align:center"
! style="width:85px; padding-left:0.5em; padding-right:0.5em" | <div style="float:left">{{color2|000|Statistic#Special Defense|Sp. Def}}:</div><div style="float:right">{{{SpDef|1}}}</div>
! style="width:85px; padding-left:0.5em; padding-right:0.5em" | <div style="float:left">{{color2|000|Stat#Special Defense|Sp. Def}}:</div><div style="float:right">{{{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>
| 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>
| <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)) * 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>
| <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>
|- style="background: #{{Speed color light}}; text-align:center"
|- style="background: #{{Speed color light}}; text-align:center"
! style="width:85px; padding-left:0.5em; padding-right:0.5em" | <div style="float:left">{{color2|000|Statistic#Speed|Speed}}:</div><div style="float:right">{{{Speed|1}}}</div>
! style="width:85px; padding-left:0.5em; padding-right:0.5em" | <div style="float:left">{{color2|000|Stat#Speed|Speed}}:</div><div style="float:right">{{{Speed|1}}}</div>
| 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>
| 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>
| <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>
| <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>

Revision as of 14:33, 2 February 2021

Stat Range
At Lv. 50 At Lv. 100
1
1 - 1 1 - 1
1
5 - 58 6 - 111
1
5 - 58 6 - 111
1
5 - 58 6 - 111
1
5 - 58 6 - 111
1
5 - 58 6 - 111
Total:
6
Other Pokémon with this total
  • Minimum stats are calculated with 0 EVs, IVs of 0, and (if applicable) a hindering nature.
  • Maximum stats are calculated with 252 EVs, IVs of 31, and (if applicable) a helpful nature.