(Created page with "'''Template:PokemonTile''' is used to display a Pokémon's sprite, name, and number inside a table cell. ==Usage== <pre><nowiki>{{PokemonTile|name=|number=|type=}}</nowiki></pre> * '''name''' is the Pokémon's name. This must be the exact name of its page on the wiki, otherwise a red link will be produced. * '''number''' is the Pokémon's National Pokédex number. It is additionally used to get the sprite image, where the file is assumed to be at <code><nowiki>File:<...") |
No edit summary |
||
Line 6: | Line 6: | ||
* '''name''' is the Pokémon's name. This must be the exact name of its page on the wiki, otherwise a red link will be produced. | * '''name''' is the Pokémon's name. This must be the exact name of its page on the wiki, otherwise a red link will be produced. | ||
* '''number''' is the Pokémon's National Pokédex number. It is additionally used to get the sprite image, where the file is assumed to be at <code><nowiki>[[File:<number>MS.png]]</nowiki></code>. | * '''number''' is the Pokémon's National Pokédex number. It is additionally used to get the sprite image, where the file is assumed to be at <code><nowiki>[[File:<number>MS.png]]</nowiki></code>. | ||
* '''type''' is not directly visible – it is used to set the background color of the cell. If a Pokémon has two types, choose the first one. | * '''type''' is not directly visible – it is used to set the background color of the cell. If a Pokémon has two types, choose the first one. The type must be lowercase to match class names listed at [[MediaWiki:Common.css]]. | ||
==Example== | ==Example== |
Latest revision as of 21:14, 22 October 2025
Template:PokemonTile is used to display a Pokémon's sprite, name, and number inside a table cell.
Usage
{{PokemonTile|name=|number=|type=}}
- name is the Pokémon's name. This must be the exact name of its page on the wiki, otherwise a red link will be produced.
- number is the Pokémon's National Pokédex number. It is additionally used to get the sprite image, where the file is assumed to be at
[[File:<number>MS.png]]
. - type is not directly visible – it is used to set the background color of the cell. If a Pokémon has two types, choose the first one. The type must be lowercase to match class names listed at MediaWiki:Common.css.
Example
{| style="text-align: center" | {{PokemonTile|name=Pikachu|number=025|type=electric}} | {{PokemonTile|name=Charmander|number=004|type=fire}} | {{PokemonTile|name=Squirtle|number=007|type=water}} |}
Produces:
![]() #025 Pikachu |
![]() #004 Charmander |
![]() #007 Squirtle |