(Created page with "class="{{{type}}}-dex" style="width: 140px;" | [[File:{{{number}}}MS.png|link={{{name}}}|{{{name}}}]]<br/>#{{{number}}}<br/>[[{{{name}}}]]") |
(documentation) |
||
Line 1: | Line 1: | ||
class="{{{type}}}-dex" style="width: 140px;" | [[File:{{{number}}}MS.png|link={{{name}}}|{{{name}}}]]<br/>#{{{number}}}<br/>[[{{{name}}}]] | <includeonly>class="{{{type}}}-dex" style="width: 140px;" | [[File:{{{number}}}MS.png|link={{{name}}}|{{{name}}}]]<br/>#{{{number}}}<br/>[[{{{name}}}]]</includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 20:58, 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 |