Template:US county navigation box/doc

Ibat king Wikipedia
This is the template documentation page for Template:US county navigation box.

This page is not necessarily intended to be viewed directly. If it uses variables, some links may appear broken. Do not replace these variables with hardcoded page names or URLs.

Usage[alilan ya ing pikuwanan]

This template is the master template for all of the United States county/parish templates. 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  = 
{{nowrap|[[Coatesville, Pennsylvania|Coatesville]]}}

| title2 = [[Borough|Boroughs]]
| body2  = 
{{nowrap|[[Atglen, Pennsylvania|Atglen]] {{!}}}}
{{nowrap|[[Avondale, Pennsylvania|Avondale]] {{!}}}} ...

| title3 = [[Civil townships|Townships]]
| body3  = 
{{nowrap|[[Birmingham Township, Pennsylvania|Birmingham]] {{!}}}} 
{{nowrap|[[Caln Township, Pennsylvania|Caln]] {{!}}}} ...

| title4 = [[Unincorporated community|Communities]] and [[census-designated place|CDPs]]
| body4  = 
{{nowrap|[[Chesterbrook, Pennsylvania|Chesterbrook]] {{!}}}} 
{{nowrap|[[Devon-Berwyn, Pennsylvania|Devon-Berwyn]] {{!}}}} ...

}}<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).

Other optional parameters for special cases:

map_size
Use to set width of map image if different from default (currently 100px). 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, i.e.
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, i.e.
[[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.