Editor
102
edits
(Created page with "'''Template:NPCBattle''' is used to display information about a trainer battle. ==Usage== <pre> {{NPCBattle |npc = |location = |type = |theme = |num1 = |pkmn1 = |... |num6 = |pkmn6 = }} </pre> * '''npc''' is the trainer's name. It is additionally used to get the trainer's image, where the file is assumed to be at <code><nowiki>[[File:<npc>.png]]</nowiki></code>. * '''location''' is the trainer's location (for example, the name of the gym). * '''type''' is the typ...") |
No edit summary |
||
| Line 16: | Line 16: | ||
* '''npc''' is the trainer's name. It is additionally used to get the trainer's image, where the file is assumed to be at <code><nowiki>[[File:<npc>.png]]</nowiki></code>. | * '''npc''' is the trainer's name. It is additionally used to get the trainer's image, where the file is assumed to be at <code><nowiki>[[File:<npc>.png]]</nowiki></code>. | ||
* '''location''' is the trainer's location (for example, the name of the gym). | * '''location''' is the trainer's location (for example, the name of the gym). | ||
* '''type''' is the type of Pokémon that the trainer uses. | * '''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 <code><nowiki>[[File:<type>.gif]]</nowiki></code>. | ||
* '''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]]. | * '''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 <code><nowiki>[[File:<num>MS.png]]</nowiki></code>. | * '''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 <code><nowiki>[[File:<num>MS.png]]</nowiki></code>. | ||