• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.213
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:US state navigation box

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
  • v
  • t
  • e
{{country data {{{template_name}}}|flagdeco/core|variant=|size=23x16px}} {{{type}}} of {{{name}}}
{{{capital}}} (capital)
{{{group1}}}
{{{body1}}}
{{{group2}}}
{{{body2}}}
{{{group3}}}
{{{body3}}}
{{{group4}}}
{{{body4}}}
{{{group5}}}
{{{body5}}}
{{{group6}}}
{{{body6}}}
{{{group7}}}
{{{body7}}}
{{{group8}}}
{{{body8}}}
{{{group9}}}
{{{body9}}}
Template documentation[view] [edit] [history] [purge]

{{US state navigation box}} is a meta-template used for each U.S. state, territory, and the District of Columbia navbox.

Contents

  • 1 Usage
  • 2 Parameters
    • 2.1 Mandatory
    • 2.2 Optional
  • 3 Example
    • 3.1 Code
    • 3.2 Result
  • 4 See also

Usage

{{US state navigation box
| template_name = {{subst:PAGENAME}} <!-- required -->
| title         = <!-- required -->
| state         =
| color         =
| text_color    =
| flag_name     = 
| capital       =
| seat          =
| subtitle      =
| image         =
| group1        = <!-- required, can use up to |group9= -->
| body1         = <!-- required, can use up to |body9= -->
}}

Parameters

Mandatory

template_name
The name of the template, which is needed for the "view • talk • edit" links to work properly on all of the pages where the template is used on. You can enter {{subst:PAGENAME}} for this value as a shortcut.
title
Combines the {{{type}}} and {{{name}}} parameters.
groupn
Subtitle to appear at the left of each bodyn
bodyn
There are a total of 9 group/list pairs, so you can use up to group9 and list9. Additional items can easily be added to the template if needed.

Optional

state [autocollapse, uncollapsed, collapsed]
autocollapse: (default) the navigation box will start out collapsed if there are two or more collapsible tables on the same page.
uncollapsed: always starts out in an expanded state.
collapsed: the navigation box will always start out in a collapsed state.
color
Changes the default background color for the main title and sidebar titles, i.e.
color = #2e8b57
Working examples: {{California}}, {{Maryland}}, and {{Pennsylvania}}.
text_color
Changes the default text color for the main title and sidebar titles. Note that you will still need to manually change the color of any wikilinks using a span tag, i.e.
[[List of Nevada counties|<span style="color :#ffd700;">Counties</span>]]
Working examples: {{Nevada}}, {{Maine}}, and {{Hawaii}}.
capital
Lists the capital below the state
seat
Used for the seat of government for {{American Samoa}}.
subtitle
Used only on {{District of Columbia}} to say "Capital of the United States" since D.C. has no capital.
image
Adds an image to the right of the body area. Use only if there is a lot of extra whitespace at the right side of the body area (for example, Template:Hawaii or Template:American Samoa). It is recommended to use a map to fill the space, similar to Template:US county navigation box. Example:
image = [[Image:example.jpg|250px]]
flag_name
Entity name to use for the flag icon, or "none" to use no flag icon. The flag image from "Template:Country data flag_name" will be used as icon. Defaults to the value of |template_name=. The |flag_image= parameter no longer does anything.

Example

Code

{{US state navigation box
| template_name = {{subst:PAGENAME}}
| title = [[U.S. state|State]] of [[New York (state)|New York]]
| state = {{{state<includeonly>|uncollapsed</includeonly>}}}
| capital = [[Albany, New York|Albany]]
| listclass = hlist

| group1 = [[:Category:New York (state)|Topics]]
| body1  =
* [[History of New York (state)|History]]
* [[List of colleges and universities in New York|Education]]
* [[Politics of New York|Politics]]
* ...

| group2 = [[List of regions of the United States#New York|Regions]]
| body2  =
* [[Adirondack Mountains]]
* [[Capital District, New York|Capital District]]
* [[Catskill Mountains]]
* ...

| group3 = [[List of cities in New York|Metro areas]]
| body3  =
* [[Albany, New York|Albany]]/[[Schenectady, New York|Schenectady]]/[[Troy, New York|Troy]]
* [[Binghamton, New York|Binghamton]]
* [[Buffalo, New York|Buffalo]]/[[Niagara Falls, New York|Niagara Falls]]
* ...
}}

Result

  • v
  • t
  • e
 State of New York
Albany (capital)
Topics
  • History
  • Education
  • Politics
  • ...
Regions
  • Adirondack Mountains
  • Capital District
  • Catskill Mountains
  • ...
Metro areas
  • Albany/Schenectady/Troy
  • Binghamton
  • Buffalo/Niagara Falls
  • ...

See also

Navigation templates comparison
  • view
  • talk
  • edit
Template Collapsible Header color Image Groups Style (body)
parameter/s
{{Navbox}} collapsible navbox Left/right of body Yes Yes
{{Navbox with collapsible groups}} collapsible navbox Left/right of body and/or in each list Yes Yes
{{Navbox with columns}} collapsible navbox Left/right of columns No Yes
Collapsible attributes
Type CSS classes JavaScript Collapses when Custom
initial state
Nesting
Collapsible tables mw-collapsible Defined in Common.js 2 or more autocollapse on page Yes Yes
The above documentation is transcluded from Template:US state navigation box/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:US_state_navigation_box&oldid=34250"
Categories:
  • Flagdeco with missing country data templates
  • Navigational boxes without horizontal lists
  • Navigational box wrapper templates
  • United States state templates
Last edited on 29 June 2021, at 18:30

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 29 June 2021, at 18:30.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop