User:Kauli/Template:Ndex
This template is intended to be moved into one of Bulbapedia's main content spaces. Be mindful that it is still part of a personal userspace. Any content changes should be brought up on the talk page for this template. |
Ndex | MS | Pokémon | Type | |
---|---|---|---|---|
#0001 | Bulbasaur |
Unknown |
This is a modified version of Template:Ndex that would allow images to work in the template for Pokémon with unannounced dex numbers, without requiring the creation of file redirects. Images only work in tables using the current version of the template if Pokémon with unannounced dex numbers have #0000 listed as their dex number in the table, and a redirect exists from File:0000Species.png to File:Species.png. This version fixes that by having the template not include the dex number in the image's filename if the parameter for the dex number is ????. Updating the template to this modified version would prevent the need to create the file redirects in the future and would allow the dex number to be displayed as #???? in the table, which more clearly imparts to readers that the dex number is yet to be announced. Updating the template wouldn't break any tables currently using the old method as long as the file redirects still exist. Here's an example of using this modified template for Ogerpon:
Ndex | MS | Pokémon | Type | |
---|---|---|---|---|
#???? | Ogerpon |
Unknown |
This modified version of the template also changes the default dex number from #001 to #0001 to accommodate Gen IX. It also adds Unknown as the default type (instead of just exposing template parsing in the type field when empty). Additionally, it fixes a typo that was present in the Usage section. None of these changes would break existing tables if the current version of Template:Ndex were to be replaced with this version.
Usage
Parameters:
- Unnamed (ordinal)
- 1: the Pokémon's National Pokédex number (for example, "0001" for Bulbasaur), or "????" if unannounced
- 2: the Pokémon's species name ("Bulbasaur")
- 3: the Pokémon's first type
- 4 (optional): the Pokémon's second type, if it has one
- Named
- iform: the form string that identifies the image of the desired form, if the default image is wrong (for example, File:0412Burmy.png shows all three of Burmy's forms, while File:0412Burmy-Plant.png shows only its first form, Plant Cloak)
- formname: the form name for the Pokémon as it appears in the Pokédex (many base forms have no name, but some, such as Burmy, do)
- forms: the number of total forms this Pokémon has; if this value is N, this template should be followed by N-1 instances of
{{ndex/form}}
- gen: dictates which menusprite image to use; options are...
- 2, 3, 4, or 5 for
{{MSP/3}}
- 6 for
{{MSP/6}}
- 8 for
{{MSP/8}}
- PE for
{{MSP/PE}}
- BDSP for
{{MSP/BDSP}}
- Any other value (including if gen is not used) defaults to
{{ArtP}}
- 2, 3, 4, or 5 for