Template:PokémonPrevNext/Pokémon: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (Protected "Template:PokémonPrevNext/Pokémon" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(adding docs, and changing default behavior to display a blank instead of question marks)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{| style="width:100%"
<includeonly>|-
</noinclude>|-
| style="width:45%; background: #{{{{{type|???}}} color light}}; {{#ifeq: {{{round|{{{roundleft|}}}}}}|none||{{roundy{{{roundleft|left}}}|15px}}}}" |  
| style="width:45%; background: #{{{{{type|???}}} color light}}; {{#ifeq: {{{round|{{{roundleft|}}}}}}|none||{{roundy{{{roundleft|left}}}|15px}}}}" |  
{| style="width:100%; background: #{{{{{type|???}}} color light}}; {{roundyleft|15px}}"
{{#if:{{{prev|}}}|
| style="text-align: right" | [[{{{prev}}} (Pokémon)|{{color|000|&larr;}}]]
{{{!}} style="width:100%; background: #{{{{{type|???}}} color light}}; {{roundyleft|15px}}"
| style="text-align: center" | {{#ifeq: {{{prevnum|???}}}|???|{{MS|000|Unknown}}|{{MSP|{{{prevnum|000}}}|{{{prev|Missingno.}}}}}}}
{{!}} style="text-align: right" {{!}} [[{{{prev|???}}} (Pokémon)|{{color|000|&larr;}}]]
| style="text-align: right" | [[{{{prev}}} (Pokémon)|{{color|000|<nowiki>#</nowiki>{{{prevnum}}}: {{{prev}}}}}]]
{{!}} style="text-align: center" {{!}} [[File:{{{prevnum|???}}}MS.png|40px|link={{{prev|Missingno.}}} (Pokémon)]]
|}
{{!}} style="text-align: right" {{!}} [[{{{prev|???}}} (Pokémon)|{{color|000|<nowiki>#</nowiki>{{{prevnum|???}}}: {{{prev|???}}}}}]]
{{!}}}
}}
| style="background: #{{{{{type|???}}} color light}};" |
| style="background: #{{{{{type|???}}} color light}};" |
{| style="background: #{{{{{type|???}}} color light}}; width:100%;"
{| style="background: #{{{{{type|???}}} color light}}; width:100%;"
Line 12: Line 13:
|}
|}
| style="width:45%; background: #{{{{{type|???}}} color light}}; {{#ifeq: {{{round|{{{roundright|}}}}}}|none||{{roundy{{{roundright|right}}}|15px}}}}" |  
| style="width:45%; background: #{{{{{type|???}}} color light}}; {{#ifeq: {{{round|{{{roundright|}}}}}}|none||{{roundy{{{roundright|right}}}|15px}}}}" |  
{| style="width:100%; background: #{{{{{type|???}}} color light}}; {{roundyright|15px}}"
{{#if:{{{next|}}}|
| style="text-align: left" | [[{{{next}}} (Pokémon)|{{color|000|<nowiki>#</nowiki>{{{nextnum}}}: {{{next}}}}}]]
{{{!}} style="width:100%; background: #{{{{{type|???}}} color light}}; {{roundyright|15px}}"
| style="text-align: center" | {{#ifeq: {{{nextnum|???}}}|???|{{MS|000|Unknown}}|{{MSP|{{{nextnum|000}}}|{{{next|Missingno.}}}}}}}
{{!}} style="text-align: left" {{!}} [[{{{next|???}}} (Pokémon)|{{color|000|<nowiki>#</nowiki>{{{nextnum|???}}}: {{{next|???}}}}}]]
| style="text-align: left" | [[{{{next}}} (Pokémon)|{{color|000|&rarr;}}]]
{{!}} style="text-align: center" {{!}} [[File:{{{nextnum|???}}}MS.png|40px|link={{{next|Missingno.}}} (Pokémon)]]
|}
{{!}} style="text-align: left" {{!}} [[{{{next|???}}} (Pokémon)|{{color|000|&rarr;}}]]
{{!}}}
}}
</includeonly><noinclude>
{{documentation}}
 
[[Category:PrevNext templates]]
</noinclude>

Latest revision as of 01:11, 10 January 2024



Template documentation
Note: portions of the template sample may not be visible without values provided.
This template is to be used to provide navigation between Pokémon species pages.

Template fields

  • type - The type of the current Pokémon. This is used for determining the color to use.
  • round (optional) - set to "none" to disable rounding of the left and right sides.
  • prev - The name of the previous Pokémon.
    • prevnum - The national dex number of the previous Pokémon.
  • next - The name of the next Pokémon.
    • nextnum - The national dex number of the next Pokémon.

Examples

Standard use

{{PokémonPrevNext/Head|type=Electric}}
{{PokémonPrevNext/GO|species=Pikachu}}
{{PokémonPrevNext/Pokémon|type=Electric|prevnum=0024|prev=Arbok|nextnum=0026|next=Raichu|round=none}}
{{PokémonPrevNext/Disambig|species=Pikachu}}
|}
For Pokémon GO information on this species, see the game's section.
0024MS.png #0024: Arbok
Pokémon
#0026: Raichu 0026MS.png
This article is about the species. For a specific instance of this species, see Pikachu (disambiguation).

No previous

{{PokémonPrevNext/Head|type=Grass|type2=Poison}}
{{PokémonPrevNext/GO|species=Bulbasaur}}
{{PokémonPrevNext/Pokémon|type=Grass|nextnum=0002|next=Ivysaur|round=none}}
{{PokémonPrevNext/Disambig|species=Bulbasaur}}
|}
For Pokémon GO information on this species, see the game's section.
Pokémon
#0002: Ivysaur 0002MS.png
This article is about the species. For a specific instance of this species, see Bulbasaur (disambiguation).

No next

{{PokémonPrevNext/Head|type=Normal}}
{{PokémonPrevNext/GO|species=Terapagos}}
{{PokémonPrevNext/Pokémon|type=Normal|prevnum=1023|prev=Iron Crown|round=none}}
{{PokémonPrevNext/Disambig|species=Terapagos}}
|}
For Pokémon GO information on this species, see the game's section.
1023MS.png #1023: Iron Crown
Pokémon


This article is about the species. For a specific instance of this species, see Terapagos (disambiguation).