Template:US state navigation box/doc

undefined is a meta-template used for each U.S. state, territory, and the District of Columbia navbox.

Usage


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  for this value as a shortcut.


 * title
 * Combines the and  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  and  .  Additional items can easily be added to the template if needed.

Optional

 * state
 * : (default) the navigation box will start out collapsed if there are two or more collapsible tables on the same page.
 * : always starts out in an expanded state.
 * : 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.
 * Working examples: California, Maryland, and Pennsylvania.
 * 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.
 * Working examples: Nevada, Maine, and Hawaii.
 * 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:


 * 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.

Code
