m (test) |
(use Lua) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#invoke:Pokemon/Wild|row}}</includeonly><noinclude> | ||
</includeonly><noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
[[Category:Guide-specific templates]]</noinclude> | [[Category:Guide-specific templates]]</noinclude> |
Latest revision as of 03:26, 17 August 2023
This page has been transcluded from Template:Pokemon/Wild row/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}}.
Usage[edit]
Pokemon/Wild[edit]
{{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:
{{Pokemon/Wild|gamecode|mode}}
gamecode
determines what game(s) the template is used for. Acceptable codes are as follows:
Code | Game(s) |
---|---|
RED | Red |
BLU | Blue |
YEL | Yellow |
RB | Red and Blue |
RBY | Red, Blue, and Yellow |
GOL | Gold |
SIL | Silver |
CRY | Crystal |
GS | Gold and Silver |
GSC | Gold, Silver, and Crystal |
RUB | Ruby |
Code | Game(s) |
---|---|
SAP | Sapphire |
EME | Emerald |
RS | Ruby and Sapphire |
RSE | Ruby, Sapphire, and Emerald |
FR | FireRed |
LG | LeafGreen |
FRLG | FireRed and LeafGreen |
DIA | Diamond |
PEA | Pearl |
PLA | Platinum |
DP | Diamond and Pearl |
Code | Game(s) |
---|---|
DPPT | Diamond, Pearl, and Platinum |
HG | HeartGold |
SS | SoulSilver |
HGSS | HeartGold and SoulSilver |
BLA | Black |
WHI | White |
BW | Black and White |
B2 | Black 2 |
W2 | White 2 |
BW2 | Black and White 2 |
X | X |
Code | Game(s) |
---|---|
Y | Y |
XY | X and Y |
OR | Omega Ruby |
AS | Alpha Sapphire |
ORAS | Omega Ruby and Alpha Sapphire |
SUN | Sun |
MOO | Moon |
SM | Sun and Moon |
US | Ultra Sun |
UM | Ultra Moon |
USUM | Ultra Sun and Moon |
mode
determines whether the encounters have an additional requirement, such as a time of day or weather state. The acceptable modes are as follows:
Mode | Use |
---|---|
Variable left blank | Defaults to the Base mode. |
Base | Sets the table as the standard type, where there is no change in weather or time of day. |
Time | Sets the table as a three-tier time type, where there is separate encounter rates for morning, day, and night. |
DN | Sets the table as a two-tier time type, where there is separate encounter rates for day and night (but not morning.) |
Weather | Sets the table as a weather-based type, where there is separate encounter rates based on the weather conditions. |
Season | Sets the table as a season-based type, where there is separate encounter rates based on the current season. |
Pokemon/Wild row[edit]
{{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:
{{Pokemon/Wild row|gamecode|mode|dexnum|level|rates|form=form}}
gamecode
must be inputted for every row. The code that is inputted determines what generation the Pokémon's sprite is taken from.
mode
only needs to be inputted if it isn't left blank in the {{Pokemon/Wild}} template. It determines how many columns the row can have.
dexnum
is the National Dex Number of the desired Pokémon. It is used to determine the Pokémon's sprite (alongside gamecode
), as well as the Pokémon's name. For a list of valid numbers and their corresponding pokémon, see Module:Pokemon/Pokedex.json.
level
is the level of the Pokémon.
rates
is the encounter rate of the Pokémon. If mode
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.
form
is used only if the Pokémon has more than one form, like Shellos or Unown.
Pokemon/Wild header[edit]
{{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:
{{Pokemon/Wild header|gamecode|encounter type}}
gamecode
determines the background color of the header, and should be the same as in the {{Pokemon/Wild}} template.
encounter type
determines what the header title is.
Examples[edit]
The following are a series of examples of how the {{Pokemon/Wild}}
family of templates may be used in various forms.
No mode, one encounter type, no version differences, no bulbapedia links[edit]
The code:
{{ContentBoxContainer}} {{Pokemon/Wild|FRLG}} {{Pokemon/Wild row|FRLG||016|2-5|50}} {{Pokemon/Wild row|FRLG||019|2-4|50}} |} </div>
The result:
No mode, one encounter type, version differences, bulbapedia links[edit]
The code:
{{ContentBoxContainer}} {{Pokemon/Wild|RS}} {{Pokemon/Wild row|RS||261|2-3|10}} {{Pokemon/Wild row|RS||263|2-3|45}} {{Pokemon/Wild row|RS||265|2-3|45}} |} {{Pokemon/Wild|EME}} {{Pokemon/Wild row|RS||261|2-3|45}} {{Pokemon/Wild row|RS||263|2-3|10}} {{Pokemon/Wild row|RS||265|2-3|45}} |} </div>
The result:
Ruby and Sapphire | |||
---|---|---|---|
Pokémon | Level | Rate | |
Poochyena | 2-3 | 10% | |
Zigzagoon | 2-3 | 45% | |
Wurmple | 2-3 | 45% |
Emerald | |||
---|---|---|---|
Pokémon | Level | Rate | |
Poochyena | 2-3 | 45% | |
Zigzagoon | 2-3 | 10% | |
Wurmple | 2-3 | 45% |
Morning-day-night cycle, one encounter type, version differences, bulbapedia links[edit]
The code:
{{ContentBoxContainer}} {{Pokemon/Wild|DP|Time}} {{Pokemon/Wild row|DP|Time|396|2-3|50|50|40}} {{Pokemon/Wild row|DP|Time|399|2-3|50|50|60}} {{Pokemon/Wild row|DP|Time|401||||}} |} {{Pokemon/Wild|PLA|Time}} {{Pokemon/Wild row|DP|Time|396|2-3|50|50|40}} {{Pokemon/Wild row|DP|Time|399|2-4|40|50|50}} {{Pokemon/Wild row|DP|Time|401|3|10|0|10}} |} </div>
The result:
Diamond and Pearl | |||||
---|---|---|---|---|---|
Pokémon | Level | Morn. | Day | Night | |
Starly | 2-3 | 50% | 50% | 40% | |
Bidoof | 2-3 | 50% | 50% | 60% | |
Kricketot | - | - | - | - |
Platinum | |||||
---|---|---|---|---|---|
Pokémon | Level | Morn. | Day | Night | |
Starly | 2-3 | 50% | 50% | 40% | |
Bidoof | 2-4 | 40% | 50% | 50% | |
Kricketot | 3 | 10% | 0% | 10% |
Seasonal cycle, multiple encounter types, version differences, bulbapedia links[edit]
The code:
{{ContentBoxContainer}} {{Pokemon/Wild|BLA|Season}} {{Pokemon/Wild row|BLA|Season|519|5-7|30|40|30|10}} {{Pokemon/Wild row|BLA|Season|520|10|10|10}} {{Pokemon/Wild row|BLA|Season|504|5-7|60|50|70|90}} {{Pokemon/Wild header|Surfing}} {{Pokemon/Wild row|BLA|Season|086|10-12|60|60|60|60}} {{Pokemon/Wild row|BLA|Season|535|10-13||30|30}} {{Pokemon/Wild row|BLA|Season|580|11|40|10|10|40}} |} {{Pokemon/Wild|WHI|Season}} {{Pokemon/Wild row|WHI|Season|519|5-7|30|40|30|10}} {{Pokemon/Wild row|WHI|Season|520|10|10|10}} {{Pokemon/Wild row|WHI|Season|504|5-7|60|50|70|90}} {{Pokemon/Wild header|Surfing}} {{Pokemon/Wild row|WHI|Season|443|10-12|60|60|60|60}} {{Pokemon/Wild row|BLA|Season|535|10-13||30|30}} {{Pokemon/Wild row|BLA|Season|580|11|40|10|10|40}} |} </div>
The result:
Black | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Pokémon | Level | Spring | Summer | Autumn | Winter | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pidove | Pidove | 5-7 | 30% | 40% | 30% | 10% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tranquill | Tranquill | 10 | 10% | 10% | - | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Patrat | Patrat | 5-7 | 60% | 50% | 70% | 90% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Surfing | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Seel | Seel | 10-12 | 60% | 60% | 60% | 60% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tympole | Tympole | 10-13 | - | 30% | 30% | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ducklett | Ducklett | 11 | 40% | 10% | 10% | 40% |
White | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Pokémon | Level | Spring | Summer | Autumn | Winter | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pidove | Pidove | 5-7 | 30% | 40% | 30% | 10% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tranquill | Tranquill | 10 | 10% | 10% | - | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Patrat | Patrat | 5-7 | 60% | 50% | 70% | 90% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Surfing | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Gible | Gible | 10-12 | 60% | 60% | 60% | 60% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tympole | Tympole | 10-13 | - | 30% | 30% | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ducklett | Ducklett | 11 | 40% | 10% | 10% | 40% |