(add documentation) |
|||
| Line 2: | Line 2: | ||
{| class="container-{{{theme}}} text-center" style="width: 350px; max-width: 100%; margin: 5px; border-radius: 10px;" | {| class="container-{{{theme}}} text-center" style="width: 350px; max-width: 100%; margin: 5px; border-radius: 10px;" | ||
| class="{{{theme}}}" | {{{location}}} | | class="{{{theme}}}" | {{{location}}} | ||
| class="{{{theme}}}" | | | class="{{{theme}}}" | {{Type|{{{type}}}}} | ||
|- | |- | ||
| class="{{{theme}}}" colspan="2" | '''{{{npc}}}'''<br/>[[File:{{{npc}}}.png]] | | class="{{{theme}}}" colspan="2" | '''{{{npc}}}'''<br/>[[File:{{{npc}}}.png]] | ||
Latest revision as of 22:34, 28 October 2025
Template:NPCBattle is used to display information about a trainer battle.
Usage
{{NPCBattle
|npc =
|location =
|type =
|theme =
|num1 = |pkmn1 =
|...
|num6 = |pkmn6 =
}}
- npc is the trainer's name. It is additionally used to get the trainer's image, where the file is assumed to be at
[[File:<npc>.png]]. - location is the trainer's location (for example, the name of the gym).
- type is the type of Pokémon that the trainer uses on their team. It is used to get the type icon via Template:Type, where the file is assumed to be at
[[File:<type>.gif]]. - theme is not directly visible – it is used to set the background color of the table. The theme must be lowercase to match class names listed at MediaWiki:Common.css.
- num1 ... num6 is the Pokémon's National Pokédex number. It is used to get the Pokémon's sprite, where the file is assumed to be at
[[File:<num>MS.png]]. - pkmn1 ... pkmn6 is the Pokémon's name. It should match the Pokédex number from the corresponding num parameter.
Example
{{NPCBattle
|npc = Iono
|location = Levincia Gym
|type = Electric
|theme = electric
|num1 = 940 |pkmn1 = Wattrel
|num2 = 939 |pkmn2 = Bellibolt
|num3 = 404 |pkmn3 = Luxio
|num4 = 429 |pkmn4 = Mismagius
}}
Produces:
