Template:Stats: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
No edit summary
(Added Documentation template)
(21 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| align="left" style="background: #{{{{{type|???}}} color}}; -moz-border-radius: 1em; border: 5px solid #{{#if:{{{type2|}}}|{{{{{type2|???}}} color}}|{{{{{type|???}}} color light}}}};"
{| style="background: #{{{{{type|???}}} color}}; {{roundy|10px}}; border: 3px solid #{{ {{#if:{{{type2|}}}|{{{type2|???}}} color|{{{type|???}}} color dark}} }}; white-space:nowrap"
|-
|-
| align="center" |
! colspan="2" rowspan="2" style="background: #{{{{{type|???}}} color light}}; {{roundytl|10px}}" | {{color2|000|Stat}}
{| border=1 align="center" style="background: #{{{{{type|???}}} color}}; border:1px solid #{{#if:{{{type2|}}}|{{{{{type2|???}}} color}}|{{{{{type|???}}} color light}}}}; border-collapse:collapse;"
! colspan="2" style="background: #{{{{{type|???}}} color light}}; {{roundytr|10px}}" | Range
! rowspan="2" | Stat
! colspan="2" rowspan="2" | Base
! colspan="2" | At Lv. 50
! colspan="2" | At Lv. 100
|-
|-
! <small>Min.</small>
! style="background: #{{{{{type|???}}} color light}};" | <small>At Lv. 50</small>
! <small>Max.</small>
! style="background: #{{{{{type|???}}} color light}};" | <small>At Lv. 100</small>
! <small>Min.</small>
|- style="background: #{{HP color light}}; text-align:center"
! <small>Max.</small>
! 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>
| <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>
|- 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|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>
| <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>
|- 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|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>
| <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>
|- 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|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>
| <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>
|- 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|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>
| <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>
|- 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|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>
| <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)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Speed|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
|- style="background: #{{{{{type|???}}} color light}};"
! style="width:85px; padding-left:0.5em; padding-right:0.5em" | <div style="float:left">Total:</div><div style="float:right">{{#expr: {{{HP|1}}} + {{{Attack|1}}} + {{{Defense|1}}} + {{{SpAtk|1}}} + {{{SpDef|1}}} + {{{Speed|1}}}}}</div>
| colspan="3" style="background: #{{{{{type|???}}} color light}}; padding-left:0.5em" | [[: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}}]]
|-
|-
|style="text-align:right; background: #FF5555;" | '''[[Stats#Hit Points|{{color|000|HP}}]]:'''
| colspan="4" style="background: #{{{{{type|???}}} color light}}; white-space:normal; font-size: smaller; width:min-content; {{roundybottom|10px}}" |
!style="text-align:right;"|{{{HP|1}}}
*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}}.
|<div class="statbar" style="background:#{{hp color}}; width: {{{HP|1}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
*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|}}}|
! <small>{{#ifexpr: {{{HP|1}}} = 1|1|{{#expr: ((0 + 2 * {{{HP|1}}} + (0/4)) * 50/100) + 10 + 50}}}}</small>
*This Pokémon's [[Statistic#Special|<span style="background-color:#8EC7BC; color:#000; padding-left:0.5em; padding-right:0.5em">Special</span>]] base stat in {{color2|000|Generation I}} was '''{{{Special}}}'''.}}
! <small>{{#ifexpr: {{{HP|1}}} = 1|1|{{#expr: ((31 + 2 * {{{HP|1}}} + (252/4)) * 50/100) + 10 + 50}}}}</small>
|}{{#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>
! <small>{{#ifexpr: {{{HP|1}}} = 1|1|{{#expr: ((0 + 2 * {{{HP|1}}} + (0/4)) * 100/100) + 10 + 100}}}}</small>
{{Documentation}}
! <small>{{#ifexpr: {{{HP|1}}} = 1|1|{{#expr: ((31 + 2 * {{{HP|1}}} + (252/4)) * 100/100) + 10 + 100}}}}</small>
[[Category:Templates]]</noinclude>
|-
|style="text-align:right; background: #F19655;" | '''[[Stats#Attack|{{color|000|Attack}}]]:'''
!style="text-align:right;"|{{{Attack|1}}}
|<div class="statbar" style="background:#{{attack color}}; width: {{{Attack|1}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
! <small>{{#expr: floor((((0 + 2 * {{{Attack|1}}} + (0/4)) * 50/100) + 5) * .9)}}</small>
! <small>{{#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)}}</small>
! <small>{{#expr: floor((((31 + 2 * {{{Attack|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
|-
|style="text-align:right; background: #F8DB69;" | '''[[Stats#Defense|{{color|000|Defense}}]]:'''
!style="text-align:right;"|{{{Defense|1}}}
|<div class="statbar" style="background:#{{defense color}}; width: {{{Defense|1}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
! <small>{{#expr: floor((((0 + 2 * {{{Defense|1}}} + (0/4)) * 50/100) + 5) * .9)}}</small>
! <small>{{#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)}}</small>
! <small>{{#expr: floor((((31 + 2 * {{{Defense|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
|-
|style="text-align:right; background: #97B1EF;" | '''[[Stats#Special Attack|{{color|000|Special Attack}}]]:'''
!style="text-align:right;"|{{{SpAtk|1}}}
|<div class="statbar" style="background:#{{special attack color}}; width: {{{SpAtk|1}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
! <small>{{#expr: floor((((0 + 2 * {{{SpAtk|1}}} + (0/4)) * 50/100) + 5) * .9)}}</small>
! <small>{{#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)}}</small>
! <small>{{#expr: floor((((31 + 2 * {{{SpAtk|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
|-
|style="text-align:right; background: #8BE75C;" | '''[[Stats#Special Defense|{{color|000|Special Defense}}]]:'''
!style="text-align:right;"|{{{SpDef|1}}}
|<div class="statbar" style="background:#{{special defense color}}; width: {{{SpDef|1}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
! <small>{{#expr: floor((((0 + 2 * {{{SpDef|1}}} + (0/4)) * 50/100) + 5) * .9)}}</small>
! <small>{{#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)}}</small>
! <small>{{#expr: floor((((31 + 2 * {{{SpDef|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
|-
|style="text-align:right; background: #F690AE;" | '''[[Stats#Speed|{{color|000|Speed}}]]:'''
!style="text-align:right;"|{{{Speed|1}}}
|<div class="statbar" style="background:#{{speed color}}; width: {{{Speed|1}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
! <small>{{#expr: floor((((0 + 2 * {{{Speed|1}}} + (0/4)) * 50/100) + 5) * .9)}}</small>
! <small>{{#expr: floor((((31 + 2 * {{{Speed|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
! <small>{{#expr: floor((((0 + 2 * {{{Speed|1}}} + (0/4)) * 100/100) + 5) * .9)}}</small>
! <small>{{#expr: floor((((31 + 2 * {{{Speed|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
|-
|style="text-align:right;" | '''Total:'''
!style="text-align:right;"|{{#expr: {{{HP|1}}} + {{{Attack|1}}} + {{{Defense|1}}} + {{{SpAtk|1}}} + {{{SpDef|1}}} + {{{Speed|1}}}}}
| colspan="5" | {{cat|Pokémon with a base stat total of {{#expr: {{{HP|1}}} + {{{Attack|1}}} + {{{Defense|1}}} + {{{SpAtk|1}}} + {{{SpDef|1}}} + {{{Speed|1}}}}}|Other Pokémon with this total}}
|- style="background: #{{{{{type|???}}} color light}}"
| colspan="7" |
*<small>Minimum stats are calculated with 0 [[EVs]], [[IVs]] of 0, and a hindering [[nature]].
*Maximum stats are calculated with 252 EVs, IVs of 31, and a helpful nature.{{#if: {{{Special|}}}|
*This Pokémon's {{background|8EC7BC|&nbsp;Special&nbsp;}} base stat in [[Generation I]] was '''{{{Special}}}'''.}}</small>
|}
|}<noinclude>[[Category:Templates]]</noinclude><includeonly>[[Category:Pokémon with a base stat total of {{#expr: {{{HP|1}}} + {{{Attack|1}}} + {{{Defense|1}}} + {{{SpAtk|1}}} + {{{SpDef|1}}} + {{{Speed|1}}}}}]]{{#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]]}}{{#switch: {{{type|???}}}|???=[[Category:Pokémon whose base stats boxes are uncolored]]}}</includeonly>
<br clear="all">

Revision as of 22:40, 27 March 2022

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.



Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)

This template is used on Pokémon pages to outline their base stats.

How to use

This template should be used be used in a subsection of "Stats" entitled "Base stats" ("Stats" being a subsection of "Game data").

Parameters

All parameters are case sensitive.

Parameter Allowed values Notes
type NormalFireFightingWaterFlyingGrassPoisonElectricGroundPsychicRockIceBugDragonGhostDarkSteelFairy??? The Pokémon's type. Use the first listed in the Pokédex, where applicable. Defaults to ???.
type2 NormalFireFightingWaterFlyingGrassPoisonElectricGroundPsychicRockIceBugDragonGhostDarkSteelFairy??? Optional. The Pokémon's second type.
HP Number The Pokémon's base HP.
Attack Number The Pokémon's base Attack.
Defense Number The Pokémon's base Defense.
SpAtk Number The Pokémon's base Special Attack.
SpDef Number The Pokémon's base Special Defense.
Speed Number The Pokémon's base Speed.
Special Number Optional. The Pokémon's base Special stat from Generation I.
nocat true Optional. Prevents the template from adding the page to any categories.

Example

This code:

{{Stats
|type = Bug
|type2 = Fire
|HP = 85
|Attack = 90
|Defense = 105
|SpAtk = 155
|SpDef = 105
|Speed = 110
|Special = 104
|nocat = true
}}

Creates:

Stat Range
At Lv. 50 At Lv. 100
85
145 - 192 280 - 374
90
85 - 156 166 - 306
105
99 - 172 193 - 339
155
144 - 227 283 - 449
105
99 - 172 193 - 339
110
103 - 178 202 - 350
Total:
650
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.
  • This Pokémon's Special base stat in Generation I was 104.