Template talk:Stats/GenI

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search

Usage

{{BaseStats/GenI|
HP= |
Attack= |
Defense= |
Special= |
Speed= }}

Output

Stat Range
At Lv. 50 At Lv. 100
65
125 - 171 240 - 333
125
130 - 176 255 - 348
100
105 - 151 205 - 298
55
60 - 106 115 - 208
85
90 - 136 175 - 268
Total:
430
(485 on other generations' scale)
  • Minimum stats are calculated with 0 EVs and IVs of 0.
  • Maximum stats are calculated with 63001 EVs and IVs of 15.
  • Total on other generations' scale counts this Pokémon's Special stat as both Special Attack and Special Defense.


Formulas are wrong

Read here Stat#In_Generations_I_and_II. Also, in Generation I and II, EVs are out of 65535.

The correct formulas are:

- unsigned comment from SnorlaxMonster (talkcontribs)

Can someone please do it. I'd do it myself, but the template's protected. --SnorlaxMonster 04:17, 8 November 2009 (UTC)
Protected for good reason. I spoke with TTEchidna about this. He says the one used in the template is correct, meaning we need to update the two images. —darklordtrom 04:31, 8 November 2009 (UTC)
OK, I see that that page has been changed now. --SnorlaxMonster 05:29, 8 November 2009 (UTC)

The 252 needs to be changed, though - to 63504. Ztobor 18:56, 31 July 2010 (UTC)

Fixing an error

There's an error in this template. When the stat is less than 9 the border for the statbar disappears. This could be easily fixed by replacing the "999" with "{{{Special|1}}}" so it always divides by itself giving the border width of 1px for all values except for 0 where it would be 0px:

border: calc({{{Special|1}}}px/{{{Special|1}}}) solid #638B83<!--{{Special color dark}}-->;

you could also divide by "({{{Special|1}}} + 0.5)" if you're afraid of dividing by 0, but it works fine on my screen. Or this template could just always use 1px for all the borders which would be even simpler.--Rocket Grunt 15:21, 23 October 2022 (UTC)

I decided to change the calculations which were causing this if parser functions which should make the code easier to understand as well.--MisterE13 02:08, 26 October 2022 (UTC)