[edit] [purge] Template documentation
The template documentation below is transcluded from Template:US county navigation box/doc [edit]

Usage

This template is the master template for all of the United States county/parish templates. (It can be used as a model for other templates, such as the multi-country county genealogy templates devised by User:Phlox in November 2007.)

A sample is shown here:

{{US county navigation box
| template_name = Chester County, Pennsylvania
| county = Chester County
| state  = Pennsylvania
| seat   = West Chester
| map_image   = Map of Pennsylvania highlighting Chester County.svg
| map_caption = 

| title1 = [[City|Cities]]
| body1  = <div>
[[Coatesville, Pennsylvania|Coatesville]]
</div>

| title2 = [[Borough|Boroughs]]
| body2  = <div>
[[Atglen, Pennsylvania|Atglen]] {{!}} 
[[Avondale, Pennsylvania|Avondale]] {{!}} 
 ...
</div>

| title3 = [[Civil township|Townships]]
| body3  = <div>
[[Birmingham Township, Pennsylvania|Birmingham]] {{!}} 
[[Caln Township, Pennsylvania|Caln]] {{!}} 
 ...
</div>

| title4 = [[Unincorporated area|Communities]] and [[census-designated place|CDPs]]
| body4  = <div>
[[Chesterbrook, Pennsylvania|Chesterbrook]] {{!}} 
[[Devon-Berwyn, Pennsylvania|Devon-Berwyn]] {{!}} 
 ...
</div>

}}<noinclude>
[[Category:"State" county navigational boxes|{{PAGENAME}}]]
</noinclude>


There are a total of 7 title/body pairs, so you can use up to "title7" and "body7" (of course, more can easily be added at any time).

Each body box that requires an uncomfortable amount of horizontal scrolling, and any title box, can be broken up manually with simple "br" tags as illustrated. (In the WP original, the body names seem to wrap without such help).

Other optional parameters for special cases:

map_size
Use to set width of map image if different from default (currently 180px). Value is the number without "px", i.e.
| map_size = 80
color
Use this to change the default background color for the main title and sidebar titles, e.g.
color = #2e8b57
text_color
Use this to change 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, e.g.
[[Unincorporated community|<span style="color:gold">Communities</span>]]
collapse_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.
blank or anything other than the above (expanded, etc.) : always start out in an expanded state.



This page uses Creative Commons Licensed content from Wikipedia (view authors). Smallwikipedialogo.png
This page uses content from the English language Wikipedia. The original content was at Template:US county navigation box. The list of authors can be seen in the page history. As with this Familypedia wiki, the content of Wikipedia is available under the Creative Commons License.
Community content is available under CC-BY-SA unless otherwise noted.