23,837
edits
(→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 == | ||
{|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;" | ||
|- | |||
| <pre>{{US county navigation box | |||
| template_name = Baker County, Oregon | | county = Baker County | ||
| state = Oregon | |||
| collapse_state={{{collapse_state|autocollapse}}} | |||
| template_name = Baker County, Oregon | |||
| color = #ccf | |||
| map_image = Or-baker.png | |||
| map_size = 100x100 | |||
| seat = Baker City | |||
| title1 = Cities | |||
| body1 = | |||
{{Nowrap | {{Nowrap|{{AutoLink|Baker City, Oregon|Baker City}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Greenhorn, Oregon|Greenhorn}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Haines, Oregon|Haines}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Halfway, Oregon|Halfway}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Huntington, Oregon|Huntington}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Richland, Oregon|Richland}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Sumpter, Oregon|Sumpter}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Unity, Oregon|Unity}} }} | ||
| title2 = Unincorporated communities | |||
| body2 = | |||
{{Nowrap | {{Nowrap|{{AutoLink|Bridgeport, Baker County, Oregon|Bridgeport}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Brownlee, Oregon|Brownlee}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Connor Creek, Oregon|Connor Creek}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Copperfield, Oregon|Copperfield}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Cornucopia, Oregon|Cornucopia}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Cracker City, Oregon|Cracker City}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Encina, Oregon|Encina}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Erwin, Oregon|Erwin}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Estes, Oregon|Estes}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Granite, Oregon|Granite}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Homestead, Oregon|Homestead}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Jimtown, Oregon|Jimtown}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Little Alps, Oregon|Little Alps}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Oxbow, Oregon|Oxbow}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Parkersville, Oregon|Parkersville}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Pine Creek, Oregon|Pine Creek}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Pleasant Valley, Oregon|Pleasant Valley}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Pocahontas, Oregon|Pocahontas}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Robinette, Oregon|Robinette}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Rock Creek, Baker County, Oregon|Rock Creek}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Sunset, Oregon|Sunset}} {{!}}}} | ||
| title3 = Farm Communities | |||
| body3 = | |||
{{Nowrap | {{Nowrap|{{AutoLink|Big Creek, Oregon|Big Creek}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Durkee, Oregon|Durkee}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Hereford, Oregon|Hereford}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Hutchinson, Oregon|Hutchinson}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Keating, Oregon|Keating}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Lime, Oregon|Lime}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|McEwen, Oregon|McEwen}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Medical Springs, Oregon|Medical Springs}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Muddy Creek, Oregon|Muddy Creek}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|New Bridge, Oregon|New Bridge}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Pine, Oregon|Pine}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Wingville, Oregon|Wingville}} }} | ||
| title4 = Ghost Towns | |||
| body4 = | |||
{{Nowrap | {{Nowrap|{{AutoLink|Auburn, Oregon|Auburn}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Bourne, Oregon|Bourne}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Cableville, Oregon|Cableville}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Carroll, Oregon|Carroll}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Carson, Oregon|Carson}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|China Town, Oregon|China Town}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Clarksville, Oregon|Clarksville}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Encina, Oregon|Encina}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Jett, Oregon|Jett}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Rye Valley, Oregon|Rye Valley}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Sanger, Oregon|Sanger}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Sparta, Oregon|Sparta}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Whitney, Oregon|Whitney}} {{!}}}} | ||
| title5 = Discontinued Post Offices | |||
| body5 = | |||
{{Nowrap | {{Nowrap|{{AutoLink|Anthony, Oregon|Anthony}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Arthur, Oregon|Arthur}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Audrey, Oregon|Audrey}} {{!}}}} | ||
{{Nowrap | {{Nowrap|{{AutoLink|Augusta, Oregon|Augusta}} {{!}}}} | ||
}} | }}<noinclude> | ||
[[Category:Oregon county navigational boxes|{{PAGENAME}}]] | [[Category:Oregon county navigational boxes|{{PAGENAME}}]] | ||
[[Category:Baker County, Oregon| ]] | [[Category:Baker County, Oregon| ]] | ||
</noinclude> | |||
</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. | :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> : (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> : 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.) : always start out in an expanded state. | ||
<includeonly> | <includeonly> |
edits