Template talk:Stats/GenI
Usage
{{BaseStats/GenI|
HP= |
Attack= |
Defense= |
Special= |
Speed= }}
Output
| Stat | Range | ||
|---|---|---|---|
| At Lv. 50 | At Lv. 100 | ||
HP: 65
|
125 - 171 | 240 - 333 | |
125
|
130 - 176 | 255 - 348 | |
100
|
105 - 151 | 205 - 298 | |
85
|
90 - 136 | 175 - 268 | |
55
|
60 - 106 | 115 - 208 | |
Total: 430
|
(485 on other generations' scale) | ||
| |||
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 (talk • contribs)
- 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)
- 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)
- Can someone please do it. I'd do it myself, but the template's protected. --SnorlaxMonster 04:17, 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)
Order
The Special and Speed stats are in the wrong order, can someone fix this? Julking (talk) 13:12, 17 April 2024 (UTC)
- It's ordered in the order that the stats are displayed in generation one (and also internally in game code). actually this internal order is kept in later generations but usually when its displayed to the player Speed gets put in the end. Generation 1 games however display stats in the proper internal order. 4iamking 13:29, 17 April 2024 (UTC)