Template:California topic/doc

Shortcuts
Some examples have shortcuts which will in turn use this template.
 * History of California -> California history
 * Sheriff's Offices -> California Sheriff's Offices or California SO

1st parameter (prefix)
The most basic usage of template is with a single unnamed parameter in the format, replacing Continent/region with the name of a continent or region and Topic with the name of a topic followed by "of" or "in". For example,  generates a navigation box titled "Geography of Africa" with a list of country names linked to articles such as Geography of Angola, etc. or
 * Code
 * Result

2nd parameter (suffix)
The template accepts a second unnamed parameter for text to be placed after the country name. There is no space between the country name and the suffix, to allow for links to articles such as List of California-related topics.
 * Code
 * Result

Mandatory

 * name
 * Mandatory when creating a new template (i.e. Template:Hospitals in the United States), otherwise the "view· talk· edit" links will connect to Template:United States topic. You can enter  for this value as a shortcut.

One of the following combinations is needed to create the links:
 * prefix
 * Text to be placed before the U.S. state name. The prefix text is always followed by a space. For example:   would create a title List of airports in the United States and a body containing state names linked to List of airports in Alabama, List of airports in Alaska, etc.
 * Note: In instances when only prefix is specified, the template inserts "the" between the prefix text and "United States", creating the title List of airports in the United States instead of List of airports in United States. In the body it does the same for the Northern Mariana Islands and the United States Virgin Islands.


 * suffix
 * Places text after the U.S. state name. For example:   would create a title United States National Guard and a body containing state names linked to Alabama National Guard, Arizona National Guard, etc.
 * Note: An underscore is used in place of the leading space in the suffix. This is done to allow the use of suffixes without a leading space, as in the following example. A title should be specified to avoid the underscore appearing in the title.


 * prefix and suffix
 * Places text before and after the U.S. state name. For example:   and   would create a title Index of United States-related articles and a body containing state names linked to Index of Alabama-related articles, Index of Alaska-related articles, etc.

Optional

 * state
 * A navbox with  will start out collapsed if there are two or more tables on the same page that use collapsible . If set to , the navbox will always start out in a collapsed state. If set to blank or anything other than   or  , the navbox will always start out in an expanded state.
 * Default is:.


 * title
 * Text that appears centered in the titlebar (the top bar). This is optional because the use of either prefix, suffix or both will automatically generate a title if the title parameter is not supplied. This parameter is not automatically wiki-linked. For example:   generates the title Rivers in the United States.

Excluding groups
In some instances the District of Columbia, U.S. Territories (Insular Areas) or U.S. Minor Outlying Islands may not be relevant to or have their own articles on a particular topic. To disable their inclusion in the template and avoid unnecessary red links, add any or all of the following parameters:


 * exclude-regions
 * Set to any value this excludes display of the group named "Regions" which links to San Fernando Valley, etc.


 * exclude-counties
 * Set to any value this excludes display of the group named "Counties" which links to Los Angeles County, California, Sacramento County, California, etc.


 * exclude-cities
 * Set to any value this excludes display of the group named "Cities and towns" which links to various cities and towns.


 * exclude-suffix
 * Set to any value this excludes the use of ", California" in links.

Adding groups and lists
Some templates may require a list of links not already included in the template. These can be specified as follows:


 * above
 * A full-width cell (no group header) displayed above the template's body (between the title and U.S. state links).


 * list1
 * Text or a list of links that is displayed above the region, county, and city links, but below the above section.


 * group1
 * Header text displayed in cell to left of text specified in list1.


 * list5
 * Text or a list of links that is displayed below the region, county, and city links, but above the below section.


 * group5
 * Header text displayed in cell to left of text specified in list5.


 * below
 * A full-width cell (no group header) displayed below the template's body.

Styles

 * titlestyle
 * Specifies CSS values to apply to the title. One use of this is to set the background color of the title:
 * Default is:
 * Default is:
 * Default is:


 * bodystyle
 * Specifies CSS values to apply to the entire template. This will not override the following Navbox default styles:


 * abovestyle
 * belowstyle
 * Specifies CSS values to apply to the cell specified via the above and below parameters. For instance:
 * Default is:
 * Default is:


 * groupstyle
 * Specifies CSS values to apply to the cells specified via the groupn cells. This option overrides any styles that are applied to the entire table. Example:
 * Default is:
 * Default is:


 * liststyle
 * Specifies CSS values to apply to the cells specified via the listn cells. This option overrides any styles that are applied to the entire table. Examples:
 * Default is:
 * Default is: