Template:Ndex: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
⧼bulbapediamonobook-jumptonavigation⧽⧼bulbapediamonobook-jumptosearch⧽
No edit summary
Expanding functionality for a new List of Pokémon by National Pokédex number format
Line 1: Line 1:
<noinclude>{| style="margin:auto; border: 2px solid #{{firered color}}; background: #{{firered color}}; {{roundy|10px}}"
<noinclude>
! style="background: #{{leafgreen color light}}; {{roundytl|5px}}" | Ndex
{{ndexh|FireRed|LeafGreen}}
! style="background: #{{leafgreen color light}}" | MS
</noinclude>
! style="background: #{{leafgreen color light}}" | Pokémon
|- style="background:#FFF"
! style="background: #{{leafgreen color light}}; {{roundytr|5px}}" colspan="2" | Type</noinclude>
| 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>
|- style="background:#FFF;"
|}
| style="font-family:monospace" | #{{padright:|3|{{{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}}|{{{ms|{{{1|001}}}}}}|{{{2|Bulbasaur}}}|form={{{form|}}}}}
==Usage==
| {{p|{{{2|Bulbasaur}}}}}
Parameters:
| colspan="{{#switch: {{{3|2}}}|2=1|2}}" style="text-align:center; background:#{{{{{4|Grass}}} color}}" | [[{{{4|Grass}}} (type)|<span style="color:#FFFFFF">{{{4|Grass}}}</span>]] {{#switch: {{{3|2}}}|2={{Template:Moveentry/type|{{{5|Poison}}}}}}}<noinclude>
* 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 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...