Template:US state navigation box/doc: Difference between revisions

(Created page with '<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> {{t…')
 
m (Text replace - "County, Nevada|" to "County, Nevada Genealogy|")
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
{{documentation subpage}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->


{{tl|{{PAGENAME}}}} is a meta-template used for each U.S. state, territory, and the District of Columbia navbox.
{{tl|{{PAGENAME}}}} is a meta-template used for each U.S. state, territory, and the District of Columbia navbox.
Line 57: Line 56:
<pre style="overflow:auto;">
<pre style="overflow:auto;">
{{US state navigation box
{{US state navigation box
| name    = [[span style="color:black">Nevada</span>]]
| name    = [[Nevada|<span style="color:black">Nevada</span>]]
| type    = [[U.S. state|<span style="color:>State</span>]]
| type    = [[U.S. state|<span style="color:>State</span>]]
| capital = [[Carson City, Nevada|<span style="color:>Carson City</span>]]
| capital = [[Carson City, Nevada|<span style="color:>Carson City</span>]]
Line 68: Line 67:
| group1 = Nevada counties
| group1 = Nevada counties
| body1 =   
| body1 =   
{{Nowrap|{{AutoLink|Churchill County, Nevada|Churchill}} {{!}}}}
{{Nowrap|{{AutoLink|Churchill County, Nevada Genealogy|Churchill}} {{!}}}}
{{Nowrap|{{AutoLink|Clark County, Nevada|Clark}} {{!}}}}
{{Nowrap|{{AutoLink|Clark County, Nevada Genealogy|Clark}} {{!}}}}
{{Nowrap|{{AutoLink|Douglas County, Nevada|Douglas}} {{!}}}}
{{Nowrap|{{AutoLink|Douglas County, Nevada Genealogy|Douglas}} {{!}}}}
{{Nowrap|{{AutoLink|Elko County, Nevada|Elko}} {{!}}}}
{{Nowrap|{{AutoLink|Elko County, Nevada Genealogy|Elko}} {{!}}}}
{{Nowrap|{{AutoLink|Esmeralda County, Nevada|Esmeralda}} {{!}}}}
{{Nowrap|{{AutoLink|Esmeralda County, Nevada Genealogy|Esmeralda}} {{!}}}}
{{Nowrap|{{AutoLink|Eureka County, Nevada|Eureka}} {{!}}}}
{{Nowrap|{{AutoLink|Eureka County, Nevada Genealogy|Eureka}} {{!}}}}
{{Nowrap|{{AutoLink|Humboldt County, Nevada|Humboldt}} {{!}}}}
{{Nowrap|{{AutoLink|Humboldt County, Nevada Genealogy|Humboldt}} {{!}}}}
{{Nowrap|{{AutoLink|Lander County, Nevada|Lander}} {{!}}}}
{{Nowrap|{{AutoLink|Lander County, Nevada Genealogy|Lander}} {{!}}}}
{{Nowrap|{{AutoLink|Lincoln County, Nevada|Lincoln}} {{!}}}}
{{Nowrap|{{AutoLink|Lincoln County, Nevada Genealogy|Lincoln}} {{!}}}}
{{Nowrap|{{AutoLink|Lyon County, Nevada|Lyon}} {{!}}}}
{{Nowrap|{{AutoLink|Lyon County, Nevada Genealogy|Lyon}} {{!}}}}
{{Nowrap|{{AutoLink|Mineral County, Nevada|Mineral}} {{!}}}}
{{Nowrap|{{AutoLink|Mineral County, Nevada Genealogy|Mineral}} {{!}}}}
{{Nowrap|{{AutoLink|Nye County, Nevada|Nye}} {{!}}}}
{{Nowrap|{{AutoLink|Nye County, Nevada Genealogy|Nye}} {{!}}}}
{{Nowrap|{{AutoLink|Pershing County, Nevada|Pershing}} {{!}}}}
{{Nowrap|{{AutoLink|Pershing County, Nevada Genealogy|Pershing}} {{!}}}}
{{Nowrap|{{AutoLink|Storey County, Nevada|Storey}} {{!}}}}
{{Nowrap|{{AutoLink|Storey County, Nevada Genealogy|Storey}} {{!}}}}
{{Nowrap|{{AutoLink|Washoe County, Nevada|Washoe}} {{!}}}}
{{Nowrap|{{AutoLink|Washoe County, Nevada Genealogy|Washoe}} {{!}}}}
{{Nowrap|{{AutoLink|White Pine County, Nevada|White Pine}} }}
{{Nowrap|{{AutoLink|White Pine County, Nevada Genealogy|White Pine}} }}


| group2 = Former counties
| group2 = Former counties
| body2 =   
| body2 =   
{{Nowrap|{{AutoLink|Bullfrog County, Nevada|Bullfrog}} {{!}}}}
{{Nowrap|{{AutoLink|Bullfrog County, Nevada Genealogy|Bullfrog}} {{!}}}}
{{Nowrap|{{AutoLink|Ormsby County, Nevada|Ormsby}} {{!}}}}
{{Nowrap|{{AutoLink|Ormsby County, Nevada Genealogy|Ormsby}} {{!}}}}
{{Nowrap|{{AutoLink|Roop County, Nevada|Roop}} }}
{{Nowrap|{{AutoLink|Roop County, Nevada Genealogy|Roop}} }}


}}  
}}  
Line 96: Line 95:
=== Result ===
=== Result ===
{{US state navigation box
{{US state navigation box
| name    = [[span style="color:black">Nevada</span>]]
| name    = [[Nevada|<span style="color:black">Nevada</span>]]
| type    = [[U.S. state|<span style="color:>State</span>]]
| type    = [[U.S. state|<span style="color:>State</span>]]
| capital = [[Carson City, Nevada|<span style="color:>Carson City</span>]]
| capital = [[Carson City, Nevada|<span style="color:>Carson City</span>]]
Line 107: Line 106:
| group1 = Nevada counties
| group1 = Nevada counties
| body1 =   
| body1 =   
{{Nowrap|{{AutoLink|Churchill County, Nevada|Churchill}} {{!}}}}
{{Nowrap|{{AutoLink|Churchill County, Nevada Genealogy|Churchill}} {{!}}}}
{{Nowrap|{{AutoLink|Clark County, Nevada|Clark}} {{!}}}}
{{Nowrap|{{AutoLink|Clark County, Nevada Genealogy|Clark}} {{!}}}}
{{Nowrap|{{AutoLink|Douglas County, Nevada|Douglas}} {{!}}}}
{{Nowrap|{{AutoLink|Douglas County, Nevada Genealogy|Douglas}} {{!}}}}
{{Nowrap|{{AutoLink|Elko County, Nevada|Elko}} {{!}}}}
{{Nowrap|{{AutoLink|Elko County, Nevada Genealogy|Elko}} {{!}}}}
{{Nowrap|{{AutoLink|Esmeralda County, Nevada|Esmeralda}} {{!}}}}
{{Nowrap|{{AutoLink|Esmeralda County, Nevada Genealogy|Esmeralda}} {{!}}}}
{{Nowrap|{{AutoLink|Eureka County, Nevada|Eureka}} {{!}}}}
{{Nowrap|{{AutoLink|Eureka County, Nevada Genealogy|Eureka}} {{!}}}}
{{Nowrap|{{AutoLink|Humboldt County, Nevada|Humboldt}} {{!}}}}
{{Nowrap|{{AutoLink|Humboldt County, Nevada Genealogy|Humboldt}} {{!}}}}
{{Nowrap|{{AutoLink|Lander County, Nevada|Lander}} {{!}}}}
{{Nowrap|{{AutoLink|Lander County, Nevada Genealogy|Lander}} {{!}}}}
{{Nowrap|{{AutoLink|Lincoln County, Nevada|Lincoln}} {{!}}}}
{{Nowrap|{{AutoLink|Lincoln County, Nevada Genealogy|Lincoln}} {{!}}}}
{{Nowrap|{{AutoLink|Lyon County, Nevada|Lyon}} {{!}}}}
{{Nowrap|{{AutoLink|Lyon County, Nevada Genealogy|Lyon}} {{!}}}}
{{Nowrap|{{AutoLink|Mineral County, Nevada|Mineral}} {{!}}}}
{{Nowrap|{{AutoLink|Mineral County, Nevada Genealogy|Mineral}} {{!}}}}
{{Nowrap|{{AutoLink|Nye County, Nevada|Nye}} {{!}}}}
{{Nowrap|{{AutoLink|Nye County, Nevada Genealogy|Nye}} {{!}}}}
{{Nowrap|{{AutoLink|Pershing County, Nevada|Pershing}} {{!}}}}
{{Nowrap|{{AutoLink|Pershing County, Nevada Genealogy|Pershing}} {{!}}}}
{{Nowrap|{{AutoLink|Storey County, Nevada|Storey}} {{!}}}}
{{Nowrap|{{AutoLink|Storey County, Nevada Genealogy|Storey}} {{!}}}}
{{Nowrap|{{AutoLink|Washoe County, Nevada|Washoe}} {{!}}}}
{{Nowrap|{{AutoLink|Washoe County, Nevada Genealogy|Washoe}} {{!}}}}
{{Nowrap|{{AutoLink|White Pine County, Nevada|White Pine}} }}
{{Nowrap|{{AutoLink|White Pine County, Nevada Genealogy|White Pine}} }}


| group2 = Former counties
| group2 = Former counties
| body2 =   
| body2 =   
{{Nowrap|{{AutoLink|Bullfrog County, Nevada|Bullfrog}} {{!}}}}
{{Nowrap|{{AutoLink|Bullfrog County, Nevada Genealogy|Bullfrog}} {{!}}}}
{{Nowrap|{{AutoLink|Ormsby County, Nevada|Ormsby}} {{!}}}}
{{Nowrap|{{AutoLink|Ormsby County, Nevada Genealogy|Ormsby}} {{!}}}}
{{Nowrap|{{AutoLink|Roop County, Nevada|Roop}} }}
{{Nowrap|{{AutoLink|Roop County, Nevada Genealogy|Roop}} }}


}}  
}}  

Latest revision as of 21:32, 5 February 2015

{{US state navigation box/doc}} 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
Image to appear at the top left of the template in the titlebar. Only supply the image name, not the full wiki syntax. Example:
flag_image = Flag of New York.svg
groupn
Subtitle to appear at the left of each bodyn
bodyn
There are a total of 8 group/list pairs, so you can use up to group8 and list8. Additional items can easily be added to the template if needed.

Optional

capital
Lists the capital below the 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}}.
seat
Used for the seat of government for {{American Samoa}}.
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.
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.
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]]

Example

Code

{{US state navigation box
| name    = [[Nevada|<span style="color:black">Nevada</span>]]
| type    = [[U.S. state|<span style="color:>State</span>]]
| capital = [[Carson City, Nevada|<span style="color:>Carson City</span>]]
| color    = silver
| text_color    = black
| flag_image    = Nevada flag.png
| flag_caption  = Flag of Nevada
| template_name = Nevada

| group1 = Nevada counties
| body1 =  
{{Nowrap|{{AutoLink|Churchill County, Nevada Genealogy|Churchill}} {{!}}}}
{{Nowrap|{{AutoLink|Clark County, Nevada Genealogy|Clark}} {{!}}}}
{{Nowrap|{{AutoLink|Douglas County, Nevada Genealogy|Douglas}} {{!}}}}
{{Nowrap|{{AutoLink|Elko County, Nevada Genealogy|Elko}} {{!}}}}
{{Nowrap|{{AutoLink|Esmeralda County, Nevada Genealogy|Esmeralda}} {{!}}}}
{{Nowrap|{{AutoLink|Eureka County, Nevada Genealogy|Eureka}} {{!}}}}
{{Nowrap|{{AutoLink|Humboldt County, Nevada Genealogy|Humboldt}} {{!}}}}
{{Nowrap|{{AutoLink|Lander County, Nevada Genealogy|Lander}} {{!}}}}
{{Nowrap|{{AutoLink|Lincoln County, Nevada Genealogy|Lincoln}} {{!}}}}
{{Nowrap|{{AutoLink|Lyon County, Nevada Genealogy|Lyon}} {{!}}}}
{{Nowrap|{{AutoLink|Mineral County, Nevada Genealogy|Mineral}} {{!}}}}
{{Nowrap|{{AutoLink|Nye County, Nevada Genealogy|Nye}} {{!}}}}
{{Nowrap|{{AutoLink|Pershing County, Nevada Genealogy|Pershing}} {{!}}}}
{{Nowrap|{{AutoLink|Storey County, Nevada Genealogy|Storey}} {{!}}}}
{{Nowrap|{{AutoLink|Washoe County, Nevada Genealogy|Washoe}} {{!}}}}
{{Nowrap|{{AutoLink|White Pine County, Nevada Genealogy|White Pine}} }}

| group2 = Former counties
| body2 =  
{{Nowrap|{{AutoLink|Bullfrog County, Nevada Genealogy|Bullfrog}} {{!}}}}
{{Nowrap|{{AutoLink|Ormsby County, Nevada Genealogy|Ormsby}} {{!}}}}
{{Nowrap|{{AutoLink|Roop County, Nevada Genealogy|Roop}} }}

}} 

Result