Template:Navbox

From Nookipedia, the Animal Crossing wiki

Template documentation (view)


Emotion Surprise NH Icon.png
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.

Usage

{{Navbox
 | State          =
 | Title          = 
 | Link           = 
 | Icon           = 
 | IconSize       = 
 | Image          = 
 | ColorClass     = 
 | Width          = 

 | Above          = 
 | Group          = 
 | GroupLink      = 
 | List           = 

 | Below          = 
 | BelowLink      = 
}}

This template is intended to be used for all navboxes, as it allows them to be easily created and maintained and gives them a consistent visual style and functionality. It is very complex, and has been designed to adapt to the many different needs of various navboxes across the wiki. This template is mobile-friendly and will appear with repositioned elements on mobile devices.

The following parameters primarily set the visual style of the template:

  • State can be set to Show to always expand the navbox. By default, it will be collapsed.
  • Title sets the displayed heading of the navbox.
  • Link sets a linked page for the navbox title.
  • Icon is an optional parameter that allows an image or text to appear in the upper-left corner of the navbox.
  • IconSize is an optional parameter that allows a custom size for the icon to be specified.
  • Image sets the image file to be displayed on the right side of the navbox.
  • colorclass sets the display colors of the infobox to a color class defined in MediaWiki:Common.css. A list of valid color classes can be found here. If this parameter is not defined, the infobox will fallback to the default hue and saturation values of 0 0%.
  • Width allows a custom width to be specified for the navbox (for style reasons this parameter should normally not be used)

The following parameters primarily set the content of the template:

  • PlainList is to be used only for very simple navboxes. It simply displays a group of links, with no groups or subgroups. It should not be used in conjunction with the below parameters.
  • Above sets a text heading to be displayed above the group and list.
  • Group sets a text heading for the group, which appears to the left of the list.
  • GroupLink sets sets a linked page for the group heading text.
  • List sets the content that appears in the list. This should always be wikilinks to articles, and each link should be in a list format. With two asterisks the list is much smaller and surrounded by parenthesizes.

An alternative to groups and lists can be used when using Template:Navbox Collection or Template:Navbox Character to display collectibles or characters. These invoke a CSS grid, ensuring they are displayed correctly. These can safely be used in conjunction with regular groups or lists, which will appear above all navgroups/navlists.

  • NavGroup sets a text heading to be displayed above the navlist.
  • NavList sets the content that appears in the navlist.
  • NavWidth allows the grid width to be adjusted. The default setting is minmax(180px, 1fr)

The following parameters set the content of the navbox footer. This should be used to link to the topic's category, project page or relevant image category. It can also be used for broad topic links that don't fit into any of the groups in the navbox.

  • Below sets the text of a link that will appear in the footer.
  • BelowLink sets the linked page for the specified text.
  • Category is intended for the displayed text for a category, which will be bolded.
  • CategoryLink sets the linked page for the specified text.
  • Files is intended for the displayed text for a files category, which will be bolded.
  • FilesLink sets the linked page for the specified text.
  • Project is intended for the displayed text for a project page, which will be bolded.
  • ProjectLink sets the linked page for the specified text.

The infobox template supports up to 10 groups with lists, 5 below links, and 2 category and/or project links. When adding more than one, you must append the sequential number to the names of the parameters like so. Failing to this will result in display errors.

 | Above2         = 
 | Group2         = 
 | Group2Link     = 
 | List2          = 

 | Below2         = 
 | Below2Link     = 
 | Category2      = 
 | Category2Link  = 

Example

{{Navbox
 | Title          = Fashion
 | Icon           = Tops NH Icon cropped.png
 | Image          = [[File:Gracie NLWa.png|40px|link=]]
 | ColorClass     = color-fashion

 | Group          = Clothing
 | List           = 
* [[Clothing]]
* [[Clothing#Tops|Tops]]
* [[Clothing#Bottoms|Bottoms]]
* [[Clothing#Dress-up|Dress-up]]
* [[Clothing#Headwear and accessories|Headwear/Accessories]]
* [[Clothing#Socks and shoes|Socks/Shoes]]
* [[Shoes]]
* [[Bag]]s
* [[Clothing#Umbrellas|Umbrellas]]
* [[Wet suit]]s

 | Group2         = Concepts
 | List2          = 
* [[Design]]
** [[List of official designs|Official designs]]
* [[Look]]
* [[Hairstyle]]
* [[Mannequin]]
* [[Mii mask]]
* {{I|Tailors ticket|NH}}

 | Group3         = Merchants
 | List3          = 
* [[Able Sisters]] 
** [[Market Place#Able Sisters To Go|To Go]]
* [[GracieGrace]]
* [[Kicks (shop)|Kicks]]
* [[Shampoodle]]
* [[Tom Nook's store]]

 | Group4         = Designers
 | List4          = 
* [[Gracie]]
* [[Harriet]]
* [[Kicks]]
* [[Label]]
* [[Mabel]]
* [[Sable]]

 | Above5         = Navigational lists
 | Group5         = By game
 | List5          = 
* [[Clothing/First-generation Animal Crossing|First generation]]
** [[Clothing/Doubutsu no Mori|In {{DnM|nolink}}]]
** [[Clothing/Doubutsu no Mori+|In {{DnM+|nolink}}]]
** [[Clothing/Animal Crossing|In {{PG|nolink}}/{{DnMe+|nolink}}]]
** [[Clothing/Dòngwù Sēnlín|In {{iQue|nolink}}]]
* [[Clothing/Wild World|In {{WW|short|nolink}}]]
* [[Clothing/City Folk|In {{CF|short|nolink}}]]
* [[Clothing/New Leaf|In {{NL|short|nolink}}]]
* [[Clothing/Pocket Camp|In {{PC|short|nolink}}]]
* [[Clothing/New Horizons|In {{NH|short|nolink}}]]
** [[Clothing/New Horizons/Tops|Tops]]
** [[Clothing/New Horizons/Bottoms|Bottoms]]
** [[Clothing/New Horizons/Dress-up|Dress-Up]]
** [[Clothing/New Horizons/Headwear|Headwear]]
** [[Clothing/New Horizons/Shoes|Shoes]]
** [[Clothing/New Horizons/Socks|Socks]]
** [[Clothing/New Horizons/Accessories|Accessories]]
** [[Bag#Item list|Bags]]
** [[Clothing/New Horizons/Umbrellas|Umbrellas]]

 | CategoryLink   = :Category:Fashion
 | ProjectLink    = Nookipedia:Project Fashion
}}