Jump to content

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

m
no edit summary
(→‎Usage: update of example for {{AutoLink}})
mNo edit summary
Line 1: Line 1:
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->


==Usage==
== Usage ==
This template is the master template for all of the United States county/parish templates.  A sample is shown here:


{|style="background:transparent;"
This template is the master template for all of the United States county/parish templates. A sample is shown here:
|<pre>
 
{{US county navigation box
{| style="background: none repeat scroll 0% 0% transparent;"
| county  = Baker County
|-
| state = Oregon
| <pre>{{US county navigation box
| template_name = Baker County, Oregon
&#124; county  = Baker County
| color = #ccf
&#124; state = Oregon
| map_image = Or-baker.png
&#124; collapse_state={{{collapse_state|autocollapse}}}
| map_size = 100x100
&#124; template_name = Baker County, Oregon
| seat = Baker City
&#124; color = #ccf
&#124; map_image = Or-baker.png
&#124; map_size = 100x100
&#124; seat = Baker City


| title1 = Cities
&#124; title1 = Cities
| body1  =
&#124; body1  =
{{Nowrap|{{AutoLink|Baker City, Oregon|Baker City}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Baker City, Oregon&#124;Baker City}} {{!}}}}
{{Nowrap|{{AutoLink|Greenhorn, Oregon|Greenhorn}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Greenhorn, Oregon&#124;Greenhorn}} {{!}}}}
{{Nowrap|{{AutoLink|Haines, Oregon|Haines}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Haines, Oregon&#124;Haines}} {{!}}}}
{{Nowrap|{{AutoLink|Halfway, Oregon|Halfway}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Halfway, Oregon&#124;Halfway}} {{!}}}}
{{Nowrap|{{AutoLink|Huntington, Oregon|Huntington}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Huntington, Oregon&#124;Huntington}} {{!}}}}
{{Nowrap|{{AutoLink|Richland, Oregon|Richland}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Richland, Oregon&#124;Richland}} {{!}}}}
{{Nowrap|{{AutoLink|Sumpter, Oregon|Sumpter}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Sumpter, Oregon&#124;Sumpter}} {{!}}}}
{{Nowrap|{{AutoLink|Unity, Oregon|Unity}} }}
{{Nowrap&#124;{{AutoLink&#124;Unity, Oregon&#124;Unity}} }}


| title2 = Unincorporated communities
&#124; title2 = Unincorporated communities
| body2  =
&#124; body2  =
{{Nowrap|{{AutoLink|Bridgeport, Baker County, Oregon|Bridgeport}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Bridgeport, Baker County, Oregon&#124;Bridgeport}} {{!}}}}
{{Nowrap|{{AutoLink|Brownlee, Oregon|Brownlee}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Brownlee, Oregon&#124;Brownlee}} {{!}}}}
{{Nowrap|{{AutoLink|Connor Creek, Oregon|Connor Creek}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Connor Creek, Oregon&#124;Connor Creek}} {{!}}}}
{{Nowrap|{{AutoLink|Copperfield, Oregon|Copperfield}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Copperfield, Oregon&#124;Copperfield}} {{!}}}}
{{Nowrap|{{AutoLink|Cornucopia, Oregon|Cornucopia}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Cornucopia, Oregon&#124;Cornucopia}} {{!}}}}
{{Nowrap|{{AutoLink|Cracker City, Oregon|Cracker City}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Cracker City, Oregon&#124;Cracker City}} {{!}}}}
{{Nowrap|{{AutoLink|Encina, Oregon|Encina}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Encina, Oregon&#124;Encina}} {{!}}}}
{{Nowrap|{{AutoLink|Erwin, Oregon|Erwin}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Erwin, Oregon&#124;Erwin}} {{!}}}}
{{Nowrap|{{AutoLink|Estes, Oregon|Estes}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Estes, Oregon&#124;Estes}} {{!}}}}
{{Nowrap|{{AutoLink|Granite, Oregon|Granite}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Granite, Oregon&#124;Granite}} {{!}}}}
{{Nowrap|{{AutoLink|Homestead, Oregon|Homestead}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Homestead, Oregon&#124;Homestead}} {{!}}}}
{{Nowrap|{{AutoLink|Jimtown, Oregon|Jimtown}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Jimtown, Oregon&#124;Jimtown}} {{!}}}}
{{Nowrap|{{AutoLink|Little Alps, Oregon|Little Alps}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Little Alps, Oregon&#124;Little Alps}} {{!}}}}
{{Nowrap|{{AutoLink|Oxbow, Oregon|Oxbow}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Oxbow, Oregon&#124;Oxbow}} {{!}}}}
{{Nowrap|{{AutoLink|Parkersville, Oregon|Parkersville}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Parkersville, Oregon&#124;Parkersville}} {{!}}}}
{{Nowrap|{{AutoLink|Pine Creek, Oregon|Pine Creek}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Pine Creek, Oregon&#124;Pine Creek}} {{!}}}}
{{Nowrap|{{AutoLink|Pleasant Valley, Oregon|Pleasant Valley}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Pleasant Valley, Oregon&#124;Pleasant Valley}} {{!}}}}
{{Nowrap|{{AutoLink|Pocahontas, Oregon|Pocahontas}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Pocahontas, Oregon&#124;Pocahontas}} {{!}}}}
{{Nowrap|{{AutoLink|Robinette, Oregon|Robinette}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Robinette, Oregon&#124;Robinette}} {{!}}}}
{{Nowrap|{{AutoLink|Rock Creek, Baker County, Oregon|Rock Creek}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Rock Creek, Baker County, Oregon&#124;Rock Creek}} {{!}}}}
{{Nowrap|{{AutoLink|Sunset, Oregon|Sunset}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Sunset, Oregon&#124;Sunset}} {{!}}}}


| title3 = Farm Communities
&#124; title3 = Farm Communities
| body3  =
&#124; body3  =
{{Nowrap|{{AutoLink|Big Creek, Oregon|Big Creek}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Big Creek, Oregon&#124;Big Creek}} {{!}}}}
{{Nowrap|{{AutoLink|Durkee, Oregon|Durkee}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Durkee, Oregon&#124;Durkee}} {{!}}}}
{{Nowrap|{{AutoLink|Hereford, Oregon|Hereford}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Hereford, Oregon&#124;Hereford}} {{!}}}}
{{Nowrap|{{AutoLink|Hutchinson, Oregon|Hutchinson}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Hutchinson, Oregon&#124;Hutchinson}} {{!}}}}
{{Nowrap|{{AutoLink|Keating, Oregon|Keating}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Keating, Oregon&#124;Keating}} {{!}}}}
{{Nowrap|{{AutoLink|Lime, Oregon|Lime}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Lime, Oregon&#124;Lime}} {{!}}}}
{{Nowrap|{{AutoLink|McEwen, Oregon|McEwen}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;McEwen, Oregon&#124;McEwen}} {{!}}}}
{{Nowrap|{{AutoLink|Medical Springs, Oregon|Medical Springs}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Medical Springs, Oregon&#124;Medical Springs}} {{!}}}}
{{Nowrap|{{AutoLink|Muddy Creek, Oregon|Muddy Creek}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Muddy Creek, Oregon&#124;Muddy Creek}} {{!}}}}
{{Nowrap|{{AutoLink|New Bridge, Oregon|New Bridge}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;New Bridge, Oregon&#124;New Bridge}} {{!}}}}
{{Nowrap|{{AutoLink|Pine, Oregon|Pine}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Pine, Oregon&#124;Pine}} {{!}}}}
{{Nowrap|{{AutoLink|Wingville, Oregon|Wingville}} }}
{{Nowrap&#124;{{AutoLink&#124;Wingville, Oregon&#124;Wingville}} }}


| title4 = Ghost Towns
&#124; title4 = Ghost Towns
| body4  =
&#124; body4  =
{{Nowrap|{{AutoLink|Auburn, Oregon|Auburn}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Auburn, Oregon&#124;Auburn}} {{!}}}}
{{Nowrap|{{AutoLink|Bourne, Oregon|Bourne}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Bourne, Oregon&#124;Bourne}} {{!}}}}
{{Nowrap|{{AutoLink|Cableville, Oregon|Cableville}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Cableville, Oregon&#124;Cableville}} {{!}}}}
{{Nowrap|{{AutoLink|Carroll, Oregon|Carroll}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Carroll, Oregon&#124;Carroll}} {{!}}}}
{{Nowrap|{{AutoLink|Carson, Oregon|Carson}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Carson, Oregon&#124;Carson}} {{!}}}}
{{Nowrap|{{AutoLink|China Town, Oregon|China Town}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;China Town, Oregon&#124;China Town}} {{!}}}}
{{Nowrap|{{AutoLink|Clarksville, Oregon|Clarksville}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Clarksville, Oregon&#124;Clarksville}} {{!}}}}
{{Nowrap|{{AutoLink|Encina, Oregon|Encina}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Encina, Oregon&#124;Encina}} {{!}}}}
{{Nowrap|{{AutoLink|Jett, Oregon|Jett}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Jett, Oregon&#124;Jett}} {{!}}}}
{{Nowrap|{{AutoLink|Rye Valley, Oregon|Rye Valley}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Rye Valley, Oregon&#124;Rye Valley}} {{!}}}}
{{Nowrap|{{AutoLink|Sanger, Oregon|Sanger}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Sanger, Oregon&#124;Sanger}} {{!}}}}
{{Nowrap|{{AutoLink|Sparta, Oregon|Sparta}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Sparta, Oregon&#124;Sparta}} {{!}}}}
{{Nowrap|{{AutoLink|Whitney, Oregon|Whitney}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Whitney, Oregon&#124;Whitney}} {{!}}}}


| title5 = Discontinued Post Offices
&#124; title5 = Discontinued Post Offices
| body5  =
&#124; body5  =
{{Nowrap|{{AutoLink|Anthony, Oregon|Anthony}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Anthony, Oregon&#124;Anthony}} {{!}}}}
{{Nowrap|{{AutoLink|Arthur, Oregon|Arthur}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Arthur, Oregon&#124;Arthur}} {{!}}}}
{{Nowrap|{{AutoLink|Audrey, Oregon|Audrey}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Audrey, Oregon&#124;Audrey}} {{!}}}}
{{Nowrap|{{AutoLink|Augusta, Oregon|Augusta}} {{!}}}}
{{Nowrap&#124;{{AutoLink&#124;Augusta, Oregon&#124;Augusta}} {{!}}}}


}}<noinclude>
}}&lt;noinclude&gt;
[[Category:Oregon county navigational boxes|{{PAGENAME}}]]
[[Category:Oregon county navigational boxes|{{PAGENAME}}]]
[[Category:Baker County, Oregon| ]]
[[Category:Baker County, Oregon| ]]
</noinclude>
&lt;/noinclude&gt;


</pre>
</pre>
Line 178: Line 180:
{{Nowrap|{{AutoLink|Augusta, Oregon|Augusta}} {{!}}}}
{{Nowrap|{{AutoLink|Augusta, Oregon|Augusta}} {{!}}}}


}}
}} <br>  
<br/>


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).
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:
Other optional parameters for special cases:  


; map_size
;map_size  
: Use to set width of map image if different from default (currently 180px). Value is the number without "px", i.e.
:Use to set width of map image if different from default (currently 180px). Value is the number without "px", i.e.  
:: <code>| map_size = 80</code>
::<code>| map_size = 80</code>


; color
;color  
: Use this to change the default background color for the main title and sidebar titles, i.e.
:Use this to change the default background color for the main title and sidebar titles, i.e.  
:: <code><nowiki>color = #2e8b57</nowiki></code>
::<code><nowiki>color = #2e8b57</nowiki></code>


; text_color
;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.
: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.  
:: <code><nowiki>[[Unincorporated community|<span style="color:gold">Communities</span>]]</nowiki></code>
::<code><nowiki>[[Unincorporated community|<span style="color:gold">Communities</span>]]</nowiki></code>


; collapse_state
;collapse_state  
: <code>autocollapse</code> : (default) the navigation box will start out collapsed if there are two or more collapsible tables on the same page.
:<code>autocollapse</code>&nbsp;: (default) the navigation box will start out collapsed if there are two or more collapsible tables on the same page.  
: <code>collapsed</code> : the navigation box will always start out in a collapsed state.
:<code>collapsed</code>&nbsp;: the navigation box will always start out in a collapsed state.  
: blank or anything other than the above (<code>expanded</code>, etc.) : always start out in an expanded state.
:blank or anything other than the above (<code>expanded</code>, etc.)&nbsp;: always start out in an expanded state.


<includeonly>
<includeonly>
23,837

edits