Template:Navbox: Difference between revisions

Template page
No edit summary
(documentation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{| class="text-center" style="margin: auto; max-width: 40em"
<includeonly>{| class="text-center" style="margin: auto; max-width: 40em"
! class="container-{{{type|grass}}}" | {{{title}}}
! class="container-{{{type|grass}}}" style="color: var(--color-base--emphasized)" | {{{title}}}
|- class="container-{{{type|grass}}}" |  
|- class="container-{{{type|grass}}}" |  
| class="{{{type|grass}}}" | {{{1}}}
| class="{{{type|grass}}}" | {{{1}}}
|}
|}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 08:43, 11 July 2026

Template documentation
A navbox is a navigational template, placed at the bottom of a page, that groups similar articles together.

Usage

{{Navbox
|title = 
|type = 
|
}}
  • title is the text to be displayed in the navbox header.
  • type is any Pokémon type; it is only used to set the navbox's background colors.
  • The unnamed parameter contains the list of articles to be grouped together. Articles should be separated by Template:*, with spaces on either side, like this:  {{*}} 

Examples

From Template:Legendary Ribbons:

{{Navbox
|title = Legendary Ribbons
|type = water
|[[Kanto Legendary Ribbon|Kanto]] {{*}} [[Johto Legendary Ribbon|Johto]] {{*}} [[Hoenn Legendary Ribbon|Hoenn]] {{*}} [[Sinnoh Legendary Ribbon|Sinnoh]] {{*}} [[Unova Legendary Ribbon|Unova]] {{*}} [[Kalos Legendary Ribbon|Kalos]] {{*}} [[Alola Legendary Ribbon|Alola]] {{*}} [[Galar Legendary Ribbon|Galar]] {{*}} [[Paldea Legendary Ribbon|Paldea]] {{*}} [[Vortex Legendary Ribbon|Vortex]]
}}

Produces:

Legendary Ribbons
Kanto · Johto · Hoenn · Sinnoh · Unova · Kalos · Alola · Galar · Paldea · Vortex