Template:Pokemon/Wild/Documentation

Pokemon/Wild, Pokemon/Wild header, and Pokemon/Wild row are a family of templates used to create encounter tables for Pokémon games. They are to be used in conjunction with ContentBoxContainer.

Pokemon/Wild
Pokemon/Wild is the primary template in the family, and determines the text put into the main header columns. The syntax for placing the template into an article looks like this:

determines whether the encounters have an additional requirement, such as a time of day or weather state. The acceptable modes are as follows:

determines what game(s) the template is used for. Acceptable codes are as follows:

Pokemon/Wild row
Pokemon/Wild row makes up the bulk of your encounters table. One instance of the template must be used for each and every Pokémon you want. The syntax for this template is as follows:

must be inputted for every row. The code that is inputted determines what generation the Pokémon's sprite is taken from.

only needs to be inputted if it isn't left blank in the  template. It determines how many columns the row can have.

is the National Dex Number of the desired Pokémon. It is used to determine the Pokémon's sprite (alongside ), as well as the Pokémon's name. For a list of valid numbers and their corresponding pokémon, see Module:Pokemon/Pokedex.json.

is the level of the Pokémon.

is the encounter rate of the Pokémon. If  is not Base or left blank, then the rate must be inputted for every valid time of day, season, or weather type. If the Pokémon is not available at a certain time of day, season, or weather condition, then that rate can be left blank. See the Examples section for further details.

is used only if the Pokémon has more than one form, like or.

is an optional boolean variable. If it is set to 1, then the name of the Pokémon will link to the corresponding article on bulbapedia. This should only be used once for every Pokémon in a set of tables, to prevent bloating the page with unnecessary links.

Pokemon/Wild header
Pokemon/Wild header is inserted in the middle of encounter tables when there is more than one way of encountering Pokémon. For example, walking vs. surfing, or using Rock Smash. The syntax for Wild header is as follows:

determines the background color of the header, and should be the same as in the  template.

determines what the header title is.

Examples
The following are a series of examples of how the  family of templates may be used in various forms.

No mode, one encounter type, no version differences, no bulbapedia links
The code:

The result:


 * }

No mode, one encounter type, version differences, bulbapedia links
The code:

The result:


 * }


 * }

Morning-day-night cycle, one encounter type, version differences, bulbapedia links
The code:

The result:


 * }


 * }

Seasonal cycle, multiple encounter types, version differences, bulbapedia links
The code:

The result:


 * }


 * }