User:Tiddlywinks/PokemonDivbox/form
This template uses TemplateStyles: User:Tiddlywinks/PokemonDivbox/styles.css.
This template creates the bottom part of a Pokémon infobox, containing most if its data aside from its names and National Pokédex number. If the species has more than one form, this template should be called multiple times, to describe each form, and each set of data can be switched between with the selector in User:Tiddlywinks/PokemonDivbox/h. If there are two forms that appear identical but have different Abilities, those forms should be treated as one form and one of the Abilities should be a "special Ability" (see below). (Currently there are no other cases where the Pokémon may have other distinct data but identical forms.)
The first call to this template should be proceeded by User:Tiddlywinks/PokemonDivbox/h and the last call should be followed by User:Tiddlywinks/PokemonDivbox/f.
Parameters
This template describes a Pokémon's specific forms. All references to "the Pokémon" below refer to the form the current template call is being written for.
- cat: an override for the categories set by this template, meant to be set blank (just
cat=
) to suppress categories - name: the Pokémon's name (like Bulbasaur)
- ndex: the Pokémon's National Pokédex number
- form: the form number (1-6) matching the form parameter that this form was assigned to in PokemonDivbox/h
- transient: whether this form is transient (can only be seen in battle)
- generation: the generation this form was introduced in
- introtype: controls if/how this form's introductory generation should be added as a category; recognized values are described below
base
: this form is the species base form, the first ever introduced, and it will be added to a "Generation [x] Pokémon" category; if form is 1, this is the default value for introtype (i.e., if the parameter is not used)form
: this form is not the species base form and it was added after the base form's introduction, so it will be added to a "Forms introduced in Generation [x]" category; if form is not 1, this is the default value for introtype (i.e., if the parameter is not used)none
: no category for this form's introduction should be added; this may be because it is one of several forms introduced at the same time as the entire species, such as Wormadam or Vivillon
- type1, type2: the Pokémon's types
- * category: the Pokémon's category
- ability1, ability2, abilityh, abilitysp: the Pokémon's first, second (if it has one), Hidden (if it has one), and special Abilities (an Ability only available to a technical form with an identical appearance to this form; if it has one)
- malerate: the Pokémon's gender ratio, expressed as the idealized rate of male Pokémon; recognized values are
0
,12.5
,25
,50
,75
,87.5
,100
, andtbd
(if the gender ratio has not been revealed), any other values will be treated as gender unknown - lv100exp: the amount of experience needed for the Pokémon to reach level 100
- base stat parameters: there are six parameters for the Pokémon's base HP, Attack, Defense, Special Attack, Special Defense, and Speed, respectively
- basehp, baseat, basede, basesa, basesd, basesp
- effort value parameters: there are six parameters for the EVs that the Pokémon gives when defeated, corresponding to HP, Attack, Defense, Special Attack, Special Defense, and Speed, respectively; only use the parameters corresponding to the EVs the Pokémon gives
- evhp, evat, evde, evsa, evsd, evsp
- expyield: the base experience that the Pokémon gives when defeated (used in calculating the winner's received experience)
- catchrate: the Pokémon's catch rate
- egggroup1, egggroup2: the Pokémon's Egg Group(s)
- eggcycles: the number of Egg cycles that an Egg with this Pokémon requires
- height-ftin, height-m: the Pokémon's height in feet/inches and meters, respectively
- weight-lbs, weight-kg: the Pokémon's weight in pounds and kilograms, respectively
- body: the Pokémon's body shape according to the Pokédex
- color: the Pokémon's color according to the Pokédex
- friendship: the Pokémon's base friendship
- callrate: the Pokémon's call rate, if applicable
- mega: the name of the Mega Stone required for the Pokémon's base form to Mega Evolve into this form, if applicable
- energyshot: the color of the Pokémon's Energy Shot in Super Training, if applicable
- palpark: the Pokémon's location in Pal Park when transferred in, if applicable
- performance stats: each performance stat has three parameters, for the Pokémon's default stat, for its maximum value, and for its minimum value (for example, Bulbasaur's speed parameters would be 2, 2, and 3), if applicable
- perf-speed, perf-speed-min, perf-speed-max
- perf-power, perf-power-min, perf-power-max
- perf-skill, perf-skill-min, perf-skill-max
- perf-stamina, perf-stamina-min, perf-stamina-max
- perf-jump, perf-jump-min, perf-jump-max
- habitat: the Pokémon's habitat in the FireRed and LeafGreen Pokédex, if applicable
- habitatimage: an override for the image displayed for the habitat if the official name differs from the file name
- fleerate: the chance that the Pokémon will flee from battle in Pokémon Gold, Silver, and Crystal, if applicable
Notes
All parameters above should conform to the Pokémon's latest data. Each of those stats also has a note parameter that can be used if it was different in a past game. Generally, its name is the stat parameter followed by "-note", but this may differ slightly when multiple parameters cover similar data (like ability1/2/h/sp, all of which are covered by ability-note).
Some notes also have optional parameters to automatically fill in the most basic cases, such as a single simple change of data. These usually come in sets of [x]-old, [x]-old-gen, and [x]-old-period, where [x]-old is used for the old value (or multiple values in some cases, like stats, if they all changed at the same time), [x]-old-gen is used if the change happened between two generations (i.e., [x]-old applies to the first game of [x]-old-gen that the Pokémon is present in), and [x]-old-period is used if the change happened in the middle of a generation (which may require values like "Gen. III-V and X and Y") or for other circumstances such as Pokémon HOME changes (this parameter overrides the generation text). Using these parameters when possible will help maintain a consistent style for basic notes. That style is explained more after the list of note parameters.
- type-note
- type-old, type-old2 (secondary old type), type-old-period, type-old-gen
- category-note
- category-old, category-old-period, category-old-gen
- ability-note
- malerate-note
- malerate-aggregate: the overall observed gender rate (either through wild encounters where both are present or through Egg probabilities) of a species that has gender-exclusive forms (such as Meowstic); this parameter should be used for both of the gender-exclusive forms
- lv100exp-note
- stats-note
- stats-old, stats-old-period, stats-old-gen
- ev-note
- ev-old, ev-old-period, ev-old-gen
- expyield-note
- expyield-old, expyield-old-period, expyield-old-gen
- catchrate-note
- catchrate-old, catchrate-old-period, catchrate-old-gen
- egggroup-note
- egggroup-old, egggroup-old-period, egggroup-old-gen
- eggcycles-note
- height-note
- weight-note
- body-note
- body-old, body-old-period, body-old-gen
- color-note
- color-old, color-old-period, color-old-gen
- friendship-note
- friendship-old, friendship-old-period, friendship-old-gen
- Generation II friendship values (all 70) and Pikachu's friendship in Pokémon Yellow are automatically added, so the above parameters should only be used for other changes
- friendship-old, friendship-old-period, friendship-old-gen
- callrate-note
- callrate-old
- mega-note
- energyshot-note
- footprint-note
- palpark-note
- perf-note
- habitat-note
- fleerate-note
As a rule, notes should be framed squarely around the old data and the period it was valid—don't phrase them about when a change happened. For example: say that Magnemite was Electric in Gen. I, not that it gained the Steel type in Gen. II or it was Electric prior to Gen. II or anything.
Most notes should largely suffice with those rules. Here, we'll lay out some of the most common cases. If the "-old" parameters do not suffice for a note, please try to follow these styles to keep notes uniform.
- If a stat changed in a new generation:
[old stat] in Gen. [x/x-y]
- If a stat changed in the middle of a generation:
[old stat] in Gen. [x/x-y] and [game(s)]
- If a stat was only different in one game:
[old stat] in [game]
- If Pokémon HOME has unique data:
[non-HOME stat] outside of HOME
(programs like HOME don't mark a point in the timeline of releases and data the same way games do, so this is an exception to the rule)- If the stat changed in HOME's mobile version:
[old stat] in the mobile version of Pokémon HOME from 2020 to [end]
- If the stat changed in HOME's mobile version:
- Abilities: if a Pokémon gained a second, Hidden, or special Ability, begin the note with "Only" for clarity (e.g., for Zygarde, "Only Aura Break in Gen. VI")
- Gender rates: when a species has exclusive forms for the male and female genders, a note should communicate the overall observed rate (either through wild encounters where both are present or through Egg probabilities), such as
Rate for overall species is 50/50
.
Also remember that a plain styling is generally fine for notes, there's no need to make them match the primary data (like including a color swatch for the Pokédex color). Body shapes are the one exception, since they have no textual representation (so Caterpie's note would look like [[File:Body02.png|24px]] in Gen. IV-V
).
Examples
Bulbasaur
65 Special in Gen. I
We could omit the romanization if it's the same as the trademarked name. And the trademarked name if it's the same as the English. But having them all there if they exist might also be good just for consistency. (I could see people complaining that we don't have the romanization or whatever even if it's the same.)
Charizard
85 Special in Gen. I
Clefairy
Normal in Gen. I-V
Cute Charm only in Gen. III
Type/Ability notes
Meowth
40 Special in Gen. I
Chansey
255 in Gen. III-IV
0 in Sun and Moon
Call rate note
Mew
New Specie in Gen. I-II
100 Special in Gen. I
Slowking
3 Special Defense in Gen. II-VII
164 in Gen. III-IV
EV note
Ralts
70 in Gen. III-IV
Human-Like in Gen. III-VII
Egg Group note
Burmy
61 in Gen. III-IV
Gray in Gen. III-VI
Color note (/HOME exception). Categories in notes are commented out here and would need to be uncommented for a "live" page.
Greninja
Greninja with Battle Bond is always male
No Eggs Discovered for Greninja with Battle Bond
Zygarde
Rockruff
Dipplin
Body shape note
Notes
Derived from User:SnorlaxMonster/Pokémon Infobox
The primary data should always use the information from the latest game (e.g., for Clefairy, type1
should be Fairy
); if it was different in a past game, use the [data]-note
field to write custom text describing the past data. Remember also, if this piece of data ties into a category (such as Normal-type Pokémon for Clefairy), you should include that category within the note.
- This template will expand Category:Generation I Pokémon/etc with subcategories for
Forms introduced in Generation [x]
.- If anywhere uses PAGESINCATEGORY on the Generation [x] Pokémon categories, it may need
|pages
added to the call. - There are some Pokémon who had different form availability across their first generation: Deoxys, Rotom, Shaymin, Tornadus/etc, Kyurem, Keldeo, Hoopa, Lycanroc?, Necrozma. Not sure if we should do anything special for those cases...
- If anywhere uses PAGESINCATEGORY on the Generation [x] Pokémon categories, it may need
- Category:Pokémon without Hidden Abilities could be a problem? I think ignoring it for transient forms is mostly enough, but there could be a case where it gets weird.
Conversion notes
We'll want to clear out any unnecessary parameters when updating the infobox style.
- abilityd has become abilityh
- gendercode has become malerate: 0 => 100, 31 => 87.5, 63 => 75, 127 => 50, 191 => 25, 223 => 12.5, 254 => 0, 255 => unknown
- forme is no longer used
- (Should double-check others)
FYI, currently, Category:Pokémon with unknown English names has been dropped. I think these days we can mostly expect coordinated announcements of Pokémon (so we won't need it), but it can be added back (in Divbox/h) if necessary.
Data cells
Just in case... All (captioned) data cells have the following form.
<div class="roundy pokemon-infobox-form-data-cell__2?__"> <div class="blacklinks pokemon-infobox-form-data-cell-caption">__CAPTIONHERE__</div> <div class="roundy pokemon-infobox-form-data-cell-data"> __DATAHERE__ {{#if: {{{__PARAM__-note|}}}|<div class="blacklinks pokemon-infobox-form-data-note">*Gen. {{{__PARAM__-note|I}}}+</div>}} </div><!-- form-data-cell-data CLOSE --> </div><!-- form-data-cell (__CAPTIONHERE__) CLOSE -->
The first div is a container that fits in 1 or 2 columns of the parent grid (__2?__
, erase this if it only needs one column, otherwise replace it with 2). The container's children stack vertically, with the first child being the "header"/caption, while the second is a space for data. The data space contains its own children (again vertically stacked): a container for the actual data and a triggerable note to mark if this data was different in a past game.
The data can contain more or less anything necessary (__DATAHERE__
).
All words starting with "__" in the code above should be replaced.