Template:Stats: Difference between revisions

m
→‎Intro: Improve Minerva (mobile) display
m (Slightly increase the width of the left column, to prevent Defense being split over two lines on Vector when the stat has 3 digits)
m (→‎Intro: Improve Minerva (mobile) display)
Line 1: Line 1:
{| style="background: #{{{{{type|???}}} color}}; {{roundy|10px}}; border: 3px solid #{{{{{type2|{{{type|???}}}}}} color dark}}; white-space:nowrap"
{| style="background: #{{{{{type|???}}} color}}; {{roundy|10px}}; border: 3px solid #{{{{{type2|{{{type|???}}}}}} color dark}}; border-collapse: separate; white-space: nowrap"
|-
|-
! colspan="2" rowspan="2" style="background: #{{{{{type|???}}} color light}}; {{roundytl|10px}}" | {{color2|000|Stat}}
! colspan="2" rowspan="2" style="background: #{{{{{type|???}}} color light}}; {{roundytl|10px}}" | {{color2|000|Stat}}
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: 90px; 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: 90px; padding-left: 0.3em; padding-right: 0.3em" | <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: 90px; 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: 90px; padding-left: 0.3em; padding-right: 0.3em" | <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: 90px; 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: 90px; padding-left: 0.3em; padding-right: 0.3em" | <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: 90px; 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: 90px; padding-left: 0.3em; padding-right: 0.3em" | <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: 90px; 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: 90px; padding-left: 0.3em; padding-right: 0.3em" | <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: 90px; 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: 90px; padding-left: 0.3em; padding-right: 0.3em" | <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>
| <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>
| <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="background: #{{{{{type|???}}} color light}};"
! style="width: 90px; 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>
! style="width: 90px; padding-left: 0.3em; padding-right: 0.3em" | <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}}]]
| colspan="3" style="background: #{{{{{type|???}}} color light}}; padding-left:0.3em" | [[: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}}]]
|-
|-
| colspan="4" style="background: #{{{{{type|???}}} color light}}; white-space:normal; font-size: smaller; width:min-content; {{roundybottom|10px}}" |  
| colspan="4" style="background: #{{{{{type|???}}} color light}}; white-space:normal; font-size: smaller; width:min-content; {{roundybottom|10px}}" |  
*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}}.
*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}}.
*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|}}}|
*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|}}}|
*This Pokémon's [[Statistic#Special|<span style="background-color:#87BFF1; color:#000; padding-left:0.5em; padding-right:0.5em">Special</span>]] base stat in {{color2|000|Generation I}} was '''{{{Special}}}'''.}}
*This Pokémon's [[Statistic#Special|<span style="background-color:#87BFF1; color:#000; padding-left: 0.3em; padding-right: 0.3em">Special</span>]] base stat in {{color2|000|Generation I}} was '''{{{Special}}}'''.}}
|}{{#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>
|}{{#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>
{{Documentation}}
{{Documentation}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>