Navigation Templates

**Navigation Templates** is a guide to correctly making and using navigation templates (or, "nav templates" for short). As their name suggests, navigation templates are used for navigating between related pages, as an alternative to categories. Both nav templates and categories are placed at the bottom of pages, but while categories must be clicked on in order to get to a list of related pages, navigation templates contain the links themselves, making the other pages directly accessible from the article that the reader is currently on. Also, while different levels of categories and subcategories must be used in order to organize different aspects of any one subject (i.e. the enemies, places or items found in a game), navigation templates can be divided up through the use of headers, subheaders and separated lists of links. Furthermore, nav templates can be colour-coded for easy identification and use.

Keep in mind that the easiest way to learn how to make a proper template is by looking at other templates and repurposing their designs, and while this page itself does not discuss the coding specifics behind templates, it *does* list a number of examples that can be copied and investigated. Category:Navigation Templates can be used to find additional examples.

## Types of templates

While the overall structure and use of navigation templates is constant, templates cover a range of subjects, and different material needs to be organized in different ways. Templates can be grouped into three basic classes: game-specific, series-wide and species templates (note that the last one includes various non-species-based templates, however species-based are the most numerous and this, along with historical usage, lends the class its name). These three types of templates are described in the following sections, followed by some more general instructions about template design.

### Game-specific templates

These are the most fundamental templates. In theory, every game should have one, although many of the more minor, obscure and/or data deficient titles do not. Game-specific templates should include links to all articles pertaining to the game in question, including the characters, enemies, bosses, items, worlds and levels. Game-specific templates are colour-coded based on the series that the game hails from: see the colouration instructions below.

The templates should be divided up by headers under which the links are filed: in other words, all the enemies go in an "Enemies" section, all the levels into a "Levels" section, etc. While the most common types of content are listed above, different games often require specialized header names or unique sections entirely. For instance, like many templates, Template:Tem names its items section "Items and Objects" to be more inclusive (i.e. of environmental hazards and blocks), while Template:Tem uses "Protagonists" to account for the fact that the antagonistic characters are grouped under the "Boss" section, rather than going into a single "characters" section. Many spin-offs are quite specialized in how their templates are organized, such as the many different character divisions in Template:Tem, or the completely unique setup of Template:Tem. By comparison, Template:Tem only requires one specialized section for the Animal Buddies.

Most of the time, every relevant article can fit into a navigation template. However, sometimes random items that do not easily fit into one of the sections are left out, or in the case of RPGs, minor things like NPCs (Non-Playable Characters) are omitted because they would make the template almost unusably large. In these cases, users must rely on categories to get to the unlisted pages. However, it should be noted that while the subjects aren't part of the templates, the templates should still be present on their articles. This is not applicable to galleries and list pages connected to the main game page.

Another situation is when one or more of the subjects has been taken out of the main game template and given their own template. For example, Template:Tem and Template:Tem are separate from the main Template:Tem and Template:Tem templates, respectively. This partitioning should generally be avoided except for levels, and other cases where including the subject would greatly increase the size of the template, as in the case of *Mario Party* series minigames (which are too major and require too much organization to simply put in categories like NPCs). These auxiliary game-specific templates only need to go on the articles of subjects that concern them (e.g. the *NSMB2* level articles) and the game page itself, however the main template has to go on the subject pages along with the auxiliary template. Like the main game-specific templates, auxiliary templates are colour-coded based on series.

### Series-wide templates

There are two types of series-wide templates, both of which are colour-coded like the game templates. The first type simply lists all the games in a series, usually subdivided into sub-series, such as in Template:Tem. Non-game series can also have templates, such as Template:Tem, which lists the comics by year. Console-based templates like Template:Tem, Template:Tem and Template:Tem (which is both console- and series-based) are also considered to be series-specific templates.

The second type is similar to the auxiliary game-specific templates in that it focuses on a single subject, but as its name suggests, follows it all across a series, rather than within a single game. These types of templates are highly discouraged except in cases where listing them apart from the game templates would help streamline navigation. For example, Template:Tem lists all the *Mario Kart* racecourses by game, but does not re-list courses when they reappear in later titles, whereas the game-specific templates do re-list retro courses; this means the at-a-glance list of racecourses is more compact than a simple assemblage of the game-specific templates' lists. It is also quite likely that readers will want to browse the courses across the entire spin-off series, whereas something more specialized like the Karts do not need a series-wide template. Please note that even in cases where a series-wide template is used, this should not be a substitute for a corresponding section in the game-specific templates: as mentioned before, the specific *Mario Kart* game templates also listed the courses (i.e. Template:Tem). Series-wide templates should not be created to replace game-specific templates: they should merely be supplemental templates. The only exception is when a subject is so numerous and minor, it would not be included in a game-specific template, and would likely only be given a category, in which case, the series-wide template would be standing in as an auxiliary game-specific template in itself, and provide sufficient organization for the minor subject. Template:Tem is an example of this.

### Species templates

Species templates organize subjects based on what they are, rather than what game they come from. Most of these templates are built around a group of related species, listing all the species and characters within that group, as in Template:Tem. Generally, differentiating between the species and the characters is all the subdivision that is found in these templates, although there are exceptions, such as Template:Tem, where separating major series and alternate media is necessary for navigating the large list. As they are not game- or series-based, species templates are not bound by the same colour-coding setup as the other two types of templates, and should instead be given colours befitting of their subject matter (i.e. brown for Template:Tems and yellow for Template:Tems).

While species make up the vast majority of this final type of template, there are a few cases where other, non-species-based notable or complex subjects are granted these templates. Basically, if a template is not a game-specific or series-wide template, it is a species template, in structure if not in name. I.e. Template:Tem is about Mario's family, yet it is designed like the humans category, with the game and alternate media characters separated. Template:Tem is another example of a non-species "species" template. Generally, these templates should provide some level of organization, and templates that are merely categories in template form, without any subdivisions, will usually be deleted. However, sometimes major subjects (items or objects) will be granted templates in order to bring them more attention than categories alone would, effectively doing for them what proper species templates do for characters and enemies. This is the reason for the existence of Template:Tem and Template:Tem (while the latter is now divided into mushrooms and mushroom recipes, it started out as a simple category-template).

For the most part, however, major subjects that deserve templates have already been given templates, and users should carefully assess the situation before creating more. This applies to species as well as miscellaneous subjects: if a group of species only has a few members, a template might be excessive, especially if it is only a minor assortment of species and characters. Conversely, very loose (and often large) groupings such as Fish or Undead should be saved for categories, not templates, as the need for such templates is far less than for specific species groupings like Template:Tem or Template:Tem, and creating too many overlapping templates can clutter up pages.

## Template design

The basic layout of a template features a banner across the top of the template bearing a descriptive title, below which are the lists of links, organized into sections by headers. The number and types of sections are different from template to template (see the above sections for more information), and many templates require sub-headers to further subdivide their sections. However, while template length is quite variable, all templates should be given the same width of 100%.

No matter the size of the template, it must be completely collapsible - in other words, all the content must be hidden by default, with only the banner visible, until the "[show]" link is clicked on. It is much easier to find a specific template when only the headers have to be skimmed through, and not the lists of links as well, and collapsing the templates also saves on space. It is enabled by including `mw-collapsible mw-collapsed` in the template's class (see below for more information on classes). Furthermore, if a page has 10 or more navigation templates, they should all be collapsed through the use of Template:Navtemplate.

Finally, be aware that every navigation template must include an [edit] button on left hand side of the banner, opposite the [show]/[hide] button. This must be manually added by placing Template:Edit in front of the title in the banner, in the form of `{{edit|NAME}}`, where "NAME" is the name of the template as it appears in the address bar.

### Listing the links

The lists of links should be grouped in a way that makes finding entries simple; generally this means alphabetical order should be used, however worlds and levels should be sequential, and characters are usually arranged by descending order of importance (i.e. Mario first, followed by Luigi, then Peach, then Bowser, etc.). Places and bosses can be organized alphabetically, like in Template:Tem, or sequentially like in Template:Tem, depending on what makes sense given the structure of the game (i.e. do the places correspond to the levels?), the length of the sections (longer lists are better served by alphabetical order), and the personal taste of whoever made the template. If a high level of organization is needed, many templates make liberal use of subheaders, creating many small lists rather than a few big ones, such as Template:Tem. Other templates use symbols to denote specific subjects in a list, such as Template:Tem's use of asterisks to mark *SM64DS*-exclusive content. Template:Tem uses both subheaders and symbols to help organize its content, whereas Template:Tem uses different types of dividers to group vibe-infused enemies with their regular counterparts which provides the overall alphabetical order. Some templates even colour-code their lists, such as Template:Tem, although this is more about aesthetic appeal than organization.

### Headers

There are two types of headers that can be used in nav templates: horizontal headers look like the title banner and are placed above their sections, while vertical headers are stacked along the left-hand side of the template, with their corresponding lists beside them. Horizontal headers and their lists are centered, and while vertical headers are also centered, their lists are justified left; alternating background colours are used to separate the sections of vertical-style templates, while the horizontal headers themselves divide up their templates, and so only one continuous background colour is needed for them.

Both styles have their pros and cons when it comes to functionality, but while horizontal headers used to be the only method used by the Super Mario Wiki, vertical headers have become the more common choice. This is mainly because they take up less space than horizontal bars, resulting in more compact templates. Unlike horizontal headers, they also lend themselves to header-subheader formatting, with subheaders nested within the column of headers, like in Template:Tem.

Horizontal headers generally only appear in complex templates that require an extra level of structure beyond the regular two-tier header-subheader system, such as Template:Tem, which uses one to separate the two different sets of pages it covers. Very large templates like Template:Tem can also use the show/hide function made possible with horizontal headers to collapse individual sections and makes the overall template more manageable. Finally, as seen in the aforementioned Template:Tem and Template:Tem, horizontal headers can be repurposed to create unique footnote sections in which symbol legends or comments can be placed.

### Colouration

 Donkey Kong general / misc
 Donkey Kong Country / Land
 Miscellaneous Mario
 Super Mario
 Consoles

Series-wide and game-specific templates are colour-coded by series. When designing a new template, specify which of the predefined colour schemes to use by adding the relevant class (listed in the chart below) to the template code. For example, the first line of Template:Tem would be `{| class="mw-collapsible mw-collapsed navtemplate mario"`, while Template:Tem would have the class of `"navtemplate lm"`, Template:Tem would have the `"navtemplate dk"`, etc. These classes automatically colour the alternating background stripes, however the banner and header colours need to be added manually using the colour codes in the chart and the format: `style=background:#FF2400` (using the "Super Mario" banner colour as an example). If no colour is specified, the banner and headers will receive default grey tones. Please note that the code `bgcolor=#FF2400` will not override the default colours.

With a few exceptions, all species templates should give banners the darkest colouration, followed by the headers and then the subheaders, with the background being significantly lighter. The default black text usually looks fine against the header and banner colours, but darker shades require the text to be white instead. The header font colours are automatically black, while the banner font colours are white by default, except for a few of the series/game-specific headers, which are black. If a species template's banner is too light for white font to be easily read, `"navtemplate light"` can be used to turn the banner font black. Conversely, if the headers are dark and the font needs to be white in order to show up, this can be done manually using Template:Tem for the regular text and Template:Tem or Template:Tem for the links. Only black and white should be used for the banner and header font colours, and all background colours should be light enough so that plain, blue links can be used for the actual lists.

For templates that use a footnote bar, such as Template:Tem, the bar can be coded like the banner, but should be given a different colour, darker than the headers, but lighter than the banner. The chart to the top right shows the existing footer colours; if a footer is added to a new class of templates, please alert an admin so that they can approve the colour choice and add it to the chart. Remember to only use footers when it is absolutely necessary.

## Order on pages

In most articles, species templates should come first, followed by game-specific and series-wide templates, which are arranged in pure chronological order. This means that rather than being grouped into series, games will be listed separately according to their individual release dates, with their colouration being used to find all the members of a given series. Subject-based series-wide templates (the second type, like Template:Tem) will be placed directly under the first game template from that series. Auxiliary game-specific templates should come after the main game template. Above the game- and series-based templates, any family templates (i.e. Template:Tem and Template:Tem) should come first, followed by the actual species template, and then any other non-species-based species templates, in order of decreasing importance. Usually, however, only the actual species template (or the equivalent item- or place-based template) will be present.

While that is the order for most subjects' articles, games and series are slightly different. Games should have their game-specific template come first, followed by the overall series-wide template (the first type, like Template:Tem), and then the console-based templates, such as Template:Tem or Template:Tem. Series pages should simply have their corresponding series-wide template.

Additionally, there are a number of specialized classes of pages, most of which have (or will eventually have) corresponding navigation templates. They are as follows:

* Galleries should all contain Template:Tem
* "List of quotes..." pages should have Template:Tem
* "List of ... pre-release and unused content" pages should have Template:Tem
* "List of glitches..." pages should have Template:Tem
* "List of media..." pages should have Template:Tem
* "List of ... profiles and statistics" pages should have Template:Tem
* Staff pages should have Template:Tem
* The References pages should all have Template:Tem

Finally, only mainspace articles can have navigation templates. Categories, other templates, Help pages, MarioWiki pages, userpages, talk pages and PipeProject pages should not have nav templates. While The 'Shroom has templates it uses for internal navigation, these should not be categorized as actual nav templates.

## Categories

In the past, categories were often added to templates so that they would automatically appear on articles that the templates were placed on, but with the advent of the new categorization system, this is no longer allowed. The only category nav templates should have is Category:Navigation Templates, which must be included using the following coding, placed after the template coding itself:

`<noinclude>[[Category:Navigation Templates|{{PAGENAME}}]]</noinclude>`
## See also

* Notice Templates
* Help:Template

Template:Wikipolicy
Template:Shortcut