Template:Navbox

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search

Purpose

Creates navbox templates.

Usage

234567
{{Navbox
|id= 
|title= 
|titleImages= 
|image= 

|group1= 
|links1= 

|group2= 
|links2= 

|footer= 
}}
{{Navbox
|id= 
|title= 
|titleImages= 
|image= 

|group1= 
|links1= 

|group2= 
|links2= 

|group3= 
|links3= 

|footer= 
}}
{{Navbox
|id= 
|title= 
|titleImages= 
|image= 

|group1= 
|links1= 

|group2= 
|links2= 

|group3= 
|links3= 

|group4= 
|links4= 

|footer= 
}}
{{Navbox
|id= 
|title= 
|titleImages= 
|image= 

|group1= 
|links1= 

|group2= 
|links2= 

|group3= 
|links3= 

|group4= 
|links4= 

|group5= 
|links5= 

|footer= 
}}
{{Navbox
|id= 
|title= 
|titleImages= 
|image= 

|group1= 
|links1= 

|group2= 
|links2= 

|group3= 
|links3= 

|group4= 
|links4= 

|group5= 
|links5= 

|group6= 
|links6= 

|footer= 
}}
{{Navbox
|id= 
|title= 
|titleImages= 
|image= 

|group1= 
|links1= 

|group2= 
|links2= 

|group3= 
|links3= 

|group4= 
|links4= 

|group5= 
|links5= 

|group6= 
|links6= 

|group7= 
|links7= 

|footer= 
}}
ParameterStatusDescriptionDefault value
idoptionalA unique ID for the navbox. Sets the id HTML attribute so that the navbox can be linked to. Defaults to the navbox title.
titlerequired

The navbox title.

It is recommended not to place links in the title as this can create confusion between the clickable navbox header and the link within it. Category links should be placed in the footer.

titleImagesoptionalTwo file names with the File: prefix, separated by a comma. Renders image to the left and right of the navbox title.
imageoptionalA file name, with the File: prefix. Renders an image in the navbox body.
groupNoptionalA header for the given row in the navbox. Required if there is more than one row.
linksNrequiredA comma-separated list of links for the given row.
maxGroupSizeNoptionalAdds the template to Category:Navigation templates needing attention if the number of links in the group exceeds this number. In most cases this value should not be set higher than its default; navboxes with too many links per group can be difficult to read.16
footeroptionalThe navbox footer. Usually contains links to relevant categories.

Creates [[:Category:Navbox templates|navbox templates]].

Template parameters

ParameterDescriptionTypeStatus
idid

A unique ID for the navbox. Sets the [https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id id HTML attribute] so that the navbox can be linked to. Defaults to the navbox title.

Stringoptional
titletitle

<p>The navbox title.</p><p>It is recommended not to place links in the title as this can create confusion between the clickable navbox header and the link within it. Category links should be placed in the footer.</p>

Contentrequired
titleImagestitleImages

Two file names with the <code>File:</code> prefix, separated by a comma. Renders image to the left and right of the navbox title.

Stringoptional
imageimage

A file name, with the <code>File:</code> prefix. Renders an image in the navbox body.

Fileoptional
footerfooter

The navbox footer. Usually contains links to relevant categories.

Contentoptional
group1group1

A header for the given row in the navbox. Required if there is more than one row.

Stringoptional
links1links1

A comma-separated list of links for the given row.

Contentrequired
maxGroupSize1maxGroupSize1

Adds the template to [[:Category:Navigation templates needing attention]] if the number of links in the group exceeds this number. In most cases this value should not be set higher than its default; navboxes with too many links per group can be difficult to read.

Numberoptional
group2group2

A header for the given row in the navbox. Required if there is more than one row.

Stringoptional
links2links2

A comma-separated list of links for the given row.

Contentrequired
maxGroupSize2maxGroupSize2

Adds the template to [[:Category:Navigation templates needing attention]] if the number of links in the group exceeds this number. In most cases this value should not be set higher than its default; navboxes with too many links per group can be difficult to read.

Numberoptional
group3group3

A header for the given row in the navbox. Required if there is more than one row.

Stringoptional
links3links3

A comma-separated list of links for the given row.

Contentrequired
maxGroupSize3maxGroupSize3

Adds the template to [[:Category:Navigation templates needing attention]] if the number of links in the group exceeds this number. In most cases this value should not be set higher than its default; navboxes with too many links per group can be difficult to read.

Numberoptional
group4group4

A header for the given row in the navbox. Required if there is more than one row.

Stringoptional
links4links4

A comma-separated list of links for the given row.

Contentrequired
maxGroupSize4maxGroupSize4

Adds the template to [[:Category:Navigation templates needing attention]] if the number of links in the group exceeds this number. In most cases this value should not be set higher than its default; navboxes with too many links per group can be difficult to read.

Numberoptional
group5group5

A header for the given row in the navbox. Required if there is more than one row.

Stringoptional
links5links5

A comma-separated list of links for the given row.

Contentrequired
maxGroupSize5maxGroupSize5

Adds the template to [[:Category:Navigation templates needing attention]] if the number of links in the group exceeds this number. In most cases this value should not be set higher than its default; navboxes with too many links per group can be difficult to read.

Numberoptional
group6group6

A header for the given row in the navbox. Required if there is more than one row.

Stringoptional
links6links6

A comma-separated list of links for the given row.

Contentrequired
maxGroupSize6maxGroupSize6

Adds the template to [[:Category:Navigation templates needing attention]] if the number of links in the group exceeds this number. In most cases this value should not be set higher than its default; navboxes with too many links per group can be difficult to read.

Numberoptional
group7group7

A header for the given row in the navbox. Required if there is more than one row.

Stringoptional
links7links7

A comma-separated list of links for the given row.

Contentrequired
maxGroupSize7maxGroupSize7

Adds the template to [[:Category:Navigation templates needing attention]] if the number of links in the group exceeds this number. In most cases this value should not be set higher than its default; navboxes with too many links per group can be difficult to read.

Numberoptional

Examples

Input
{{Navbox
|id= la-trading-sequence
|title= {{LA|-}} Trading Sequence
|titleImages= File:LADX Yoshi Doll Sprite.png, File:LADX Magnifying Lens Sprite.png

|links1= {{Term List|LANS|Yoshi Doll, Ribbon, Dog Food, Bananas, Stick, Honeycomb, Pineapple, Hibiscus, Goat's Letter, Broom, Fishing Hook, Necklace, Scale, Magnifying Lens|link= }}

|footer= [[Trading Sequence|Trading Sequences]]
}}
Output

Input
{{Navbox
|id= sage-medallions
|title = Sage Medallions in {{OoT|-}}
|titleImages= File:OoT3D Light Medallion Icon.png, File:OoT3D Spirit Medallion Icon.png

|links1= {{Term|OoT3D|Sage Medallion|link}}
|links2= {{Term List|OoT3D|Light Medallion, Forest Medallion, Fire Medallion, Water Medallion, Shadow Medallion, Spirit Medallion|link= }}

|footer = [[:Category:Sage Medallions]]
}}
Output

Input
{{Navbox
|id= characters
|title= Character Listings by Game
|image= File:Carpenters.png

|group1= Main Series
|links1= {{#invoke:Franchise List|GameLinks|type= main|link= Characters in $shortName}}

|group2= Spin-offs
|links2= {{#invoke:Franchise List|GameLinks|type= spin-off|link= Characters in $shortName}}

|footer= [[:Category:Characters|Characters]] • [[:Category:Listings|Listings]]
}}
Output

title is required
Input
{{Navbox
|links1= bar
|links2= baz
}}
Output
Categories Added

Guidelines

  • A navbox must contain links to every page that uses it, and only those pages. Otherwise the navbox is not bidirectional and can lead to "dead ends."
  • A navbox must not contain red links.
  • Each navbox row should have 16 links or less, in most cases.

If a navbox fails to meet any of these conditions, the template page is added to Category:Navigation templates needing attention. A Report section is automatically generated which describes what needs to be fixed.

Notes

This template transforms internal links into external links masquerading as internal links, using the plainlinks class. This is to avoid cluttering Special:WhatLinksHere. As a side effect, navboxes display red links as if they were links to pages that exist. Therefore, navboxes should not contain any red links, otherwise users can click the link expecting to land on an article and be (unpleasantly) surprised to have been brought to a dead end.

See Also

The above documentation is transcluded from Template:Navbox/Documentation. (edit | history)