Template:Trainer Battle/doc

Similar to Template:Wild Encounter, Template:Set Encounter and the associated sub-templates, this is a template series used on PBB Wikia to standardize the appearance and details of encounter information tables by using the following sub-templates. The major difference is that these sub-templates are for Trainer Battles. Note that directly using the main template does not work!

Sub-templates
Make sure to put  between sub-templates, in order to prevent the template from crashing. Each sub-template has its own parameters, as follows:

Trainer Battle/header
This is the header to begin the table. By default, nothing is shown above the table, but 2 of 3 available parameters can be used to display some notes above it. Here are details of the 3 parameters:
 * Rematch: If more than 1 of the trainers are available for rematches, type "yes". If only 1 is able for rematches, input "1". Otherwise, delete this attribute.
 * Note: Custom notes such as which moves are dangerous such that players are advised to be on the alert.
 * Theme: Pick a theme from the following table that best suits the place, then the corresponding codes will be used to apply the required background colour to title and headers. Most of the time, it should be having the same theme as the article infobox, but if the table is showing Gym Trainers, use the theme matching specialized type of the Gym. If default theme shall be used, delete this attribute.

Trainer Battle/div
This is the sub-template for showing a warning of consecutive matches. Input "back-to-back" in the first and only parameter if the warning has to be put up. This parameter can also be used for showing the location or requirement, such as the battle only being available once all 8 Gym Badges are acquired.

Trainer Battle/entry
This is the most important part of this template, showing the details of each Trainer available and their teams of Pokémon, automatically importing the front sprite files. A list of basic parameters are here:
 * Trainer: Trainer Class and name of the Battler.
 * Rematch: Input "yes" if this Trainer can be fought again. A "*" will be automatically added behind his or her name. Otherwise, ignore this parameter.
 * Hotspot: If this Trainer belongs to any of the Training Hotspots, type the category of it. Otherwise, delete this parameter.
 * Party: How many Pokémon does the Trainer have? This parameter decides how many rows are needed to show all Pokémon of the Trainer. If "Repeat" parameters are filled, though, actual rows required will be fewer than the party number, requiring another parameter "Row" to define the number of rows manually.
 * Theme: Input the theme listed above to use the corresponding colour for the cell background of Trainer's name. It should be the same as what theme header uses normally, but for Team Eclipse members, always use the "eclipse" theme. For Gym Trainers and Leaders, always use the theme matching specialized type of the Gym. Some trainers such as Rival Tess should also use a theme that best matches the type they excel in.
 * Reward(1-4): The money and item rewards (if any). Use "Reward1" for money and while using this parameter, the dollar sign is not required. If item rewards such as Gym Badges and TMs are available, use the remaining 3 attributes accordingly.

The following parameters are for displaying Trainers' Pokémon, thus coming in 1-6 unless otherwise specified:
 * Pokemon: Name of the Pokémon.
 * Mega: Put "yes" if it is a Mega Evolved Pokémon, otherwise ignore this attribute. If used, "Gender", "Form" and "Repeat" parameters are disabled for the Pokémon.
 * Gender: Only use this if the Pokémon has gender differences in the front sprite files. Type "M" for male and "F" for female. Otherwise, do not use this parameter or this template will fail to import the correct file.
 * Form: If there is a specific form when it appears, type in the form. The attribute "FormName" might also need to be used, depending on the file name for its front sprite — search it up before using this attribute.
 * Repeat: If the Pokémon is repeated, type in how many times it is repeated. Otherwise, ignore this parameter. Only available as "Repeat1" to "Repeat5", the 6th Pokémon is not supposed to be repeated.
 * Type: Type(s) of the Pokémon. Once the parameters detect an input, they automatically call Template:Type. Due to the numbering, these attributes have slightly different names from "Template:Wild Encounter" and "Template:Set Encounter" — input the primary type in "PriType", and if the Pokémon has 2 types, use "SecType" for the secondary type.
 * Suffix: Image suffix for the front sprite photo. By default it should be XY because most of the sprites are from Pokémon X and Y, but some forms are introduced in Pokémon Omega Ruby and Alpha Sapphire, requiring the suffix to be ORAS. Alola Pokémon and certain forms introduced in Pokémon Sun and Moon use suffix SM.
 * EXP: EXP Points of the Pokémon.
 * EV: EV Yield of the Pokémon. Use Template:EV to show it.

Trainer Battle/partner
A similar sub-template of "Trainer Battle/entry", but this one is specifically made for showing partner's Pokémon when having Double or Tag Battles, automatically importing the back sprite files instead of front sprites. "Rematch", "Hotspot", "Theme", "Reward", "Mega", "Repeat", "EXP" and "EV" parameters are disabled, others remain the same as "Trainer Battle/entry".

Trainer Battle/footer
This is the footer to complete the table. The only parameter available is "Update" — type "yes" if any of the Pokémon has its level and EXP changed between updates, otherwise ignore this parameter.