{{US state navigation box}} is a meta-template used for each U.S. state, territory, and the District of Columbia navbox.
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.
- flag_image
- groupn
- bodyn
- There are a total of 7 group/list pairs, so you can use up to
group7
and list7
. Additional items can easily be added add to the template if needed.
Optional
- capital
- Lists the capital bellow the state
- color
- Changes the default background color for the main title and sidebar titles, i.e.
color = #2e8b57
- Working examples on Wikipedia in June 2007: {{California}}, {{Maryland}}, and {{Pennsylvania}}.
- flag_caption
- fontcolor
- 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}}.
- seat
- Used for the seat of government for {{American Samoa}}.
- state
autocollapse
: (default) the navigation box will start out collapsed if there are two or more collapsible tables on the same page.
collapsed
: the navigation box will always start out in a collapsed state.
expanded
or blank : always start out in an expanded state.
- subtitle
- Used only on {{District of Columbia}} to say "Capital of the United States" since DC has no capital.
Example
Code
{{US state navigation box
| template_name = {{subst:PAGENAME}}
| title = [[U.S. State|State]] of [[New York]]
| capital = [[Albany, New York|Albany]]
| flag_image = Flag of New York.svg
| flag_caption = Flag of New York
| group1 = [[:Category:New York|Topics]]
| body1 =
[[History of New York|History]] {{pipe}}
[[List of colleges and universities in New York|Education]] {{pipe}}
[[Politics of New York|Politics]] {{pipe}} ...
| group2 = [[Regions of the United States#New York|Regions]]
| body2 =
[[Adirondack Mountains|Adirondack Mountains]] {{pipe}}
[[Capital District|Capital District]] {{pipe}}
[[Catskill Mountains|Catskill Mountains]] {{pipe}} ...
| group3 = [[List of cities in New York|Metro areas]]
| body3 =
[[Albany, New York|Albany]]/[[Schenectady, New York|Schenectady]]/[[Troy, New York|Troy]] {{pipe}}
[[Binghamton, New York|Binghamton]] {{pipe}}
[[Buffalo, New York|Buffalo]]/[[Niagara Falls, New York|Niagara Falls]] {{pipe}} ...
}}
Result
See also