Editor
167
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 |
||
| (2 intermediate revisions by the same user not shown) | |||
| 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 via [[Template:Type]], where the file is assumed to be at <code><nowiki>[[File:<type>.gif]]</nowiki></code>. | ||
* '''theme''' is | * '''theme''' is generally the same value as '''type''', but lowercase. It is used to set the background color of the table via classes (<code>.container-<theme></code>) 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>. | ||
* '''pkmn1 ... pkmn6''' is the Pokémon's name. It should match the Pokédex number from the corresponding '''num''' parameter. | * '''pkmn1 ... pkmn6''' is the Pokémon's name. It should match the Pokédex number from the corresponding '''num''' parameter. | ||