Template:NPCBattle/doc

Template page
Revision as of 01:57, 26 October 2025 by Trrgtw (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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, 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:

Levincia Gym
Iono
WattrelBelliboltLuxioMismagius