Template:Ndex: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
⧼bulbapediamonobook-jumptonavigation⧽⧼bulbapediamonobook-jumptosearch⧽
No edit summary |
Tiddlywinks (talk | contribs) Expanding functionality for a new List of Pokémon by National Pokédex number format |
||
Line 1: | Line 1: | ||
<noinclude>{| | <noinclude> | ||
{{ndexh|FireRed|LeafGreen}} | |||
</noinclude> | |||
|- style="background:#FFF" | |||
| rowspan="{{{forms|1}}}" style="font-family:monospace,monospace" | #{{{1|001}}} || {{{{#switch: {{{gen|}}}|2|3|4|5=MSP/3|6=MSP/6|PE=MSP/PE|8=MSP/8|BDSP=MSP/BDSP|9=|10=|ArtP}}|{{{1|001}}}|{{{2|Bulbasaur}}}|form={{{iform|}}}}} || {{p|{{{2|Bulbasaur}}}}} <small>{{{formname|}}}</small> {{#if:{{{4|}}}|{{Moveentry/type|{{{3}}}}} {{Moveentry/type|{{{4}}}}}|{{Moveentry/type|{{{3}}}|colspan=2}}}}<noinclude> | |||
|} | |||
==Usage== | |||
| {{p|{{{2|Bulbasaur}}}}} | Parameters: | ||
| | * Unnamed (ordinal) | ||
|}[[Category:Table templates]]</noinclude> | ** 1: the Pokémon's [[National Pokédex]] number (for example, "001" for Bulbasaur) | ||
** 2: the Pokémon's species name ("Bulbasaur") | |||
** 3: the Pokémon's first [[type]] | |||
** 4 (optonal): 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:412Burmy.png]] shows all three of {{p|Burmy}}'s forms, while [[:File:412Burmy-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 {{Template|Ndex/Form}} | |||
** ''gen'': dictates which menusprite image to use; options are... | |||
*** 2, 3, 4, or 5 for {{Template|MSP/3}} | |||
*** 6 for {{Template|MSP/6}} | |||
*** 8 for {{Template|MSP/8}} | |||
*** PE for {{Template|MSP/PE}} | |||
*** BDSP for {{Template|MSP/BDSP}} | |||
*** Any other value (including if ''gen'' is not used) defaults to {{Template|ArtP}} | |||
[[Category:Table templates]]</noinclude> |
Revision as of 05:47, 8 November 2022
Ndex | MS | Pokémon | Type | |
---|---|---|---|---|
#001 | ![]() |
Bulbasaur | [[{{{3}}} (type)|{{{3}}}]] |
Usage
Parameters:
- Unnamed (ordinal)
- 1: the Pokémon's National Pokédex number (for example, "001" for Bulbasaur)
- 2: the Pokémon's species name ("Bulbasaur")
- 3: the Pokémon's first type
- 4 (optonal): 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:412Burmy.png shows all three of Burmy's forms, while File:412Burmy-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