Template:Infobox U.S. County/doc: Difference between revisions
No edit summary |
(remove population, time zone, US Congressional districts) |
||
(31 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}}<!--only displayed when viewed from /doc page--> | {{Documentation subpage}}<!--only displayed when viewed from /doc page--> | ||
{{Template sandbox notice}}<!--only displayed when viewed from /sandbox page--> | |||
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE---> | <!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE---> | ||
{{TOCright}} | {{TOCright}} | ||
Line 6: | Line 7: | ||
Other templates that are helpful for U.S. County articles: | Other templates that are helpful for U.S. County articles: | ||
* [[Template: | * [[Template:USCensusPop|USCensusPop]] - lists the population of the county per decade. | ||
* [[Template:Coord|Coord]] - a cool template that displays the coordinates of the county. Notes about this one: | |||
''View [[Template:Infobox U.S. County/Sample]] to see how this infobox is rendered.'' | |||
This blank template | == Usage == | ||
This blank template excludes some optional parameters that must be omitted if not used (will not work properly if left blank), plus some older parameters that still work but have been replaced by newer parameter names. It also excludes square kilometer (km2) parameters that are automatically calculated (replace "_sq_mi" with "_km2" to enter square kilometers instead and have the square miles calculated). See the parameter documentation below for more details. | |||
The parameters are listed in the order displayed by the infobox. | The parameters are listed in the order displayed by the infobox. The exception is latitude and longitude which are not placed in the infobox, but are displayed on the upper right side of the page via the {{tl|coord}} template. | ||
{|style="background:transparent;" | |||
{| style="background: | |<pre> | ||
{{Infobox U.S. County | |||
| <pre>{{Infobox U.S. County | | county = | ||
| county_map = | |||
| state = | |||
| county | | state_map = | ||
| | | seal = | ||
| founded year = | |||
| state | | founded date = | ||
| state_map | | seat wl = | ||
| | | motto = | ||
| web = | |||
| named for = | |||
| founded year | | flag = | ||
| founded date | | logo = | ||
| | | ex image = | ||
| motto | | ex image cap = | ||
| footnotes = | |||
| lat deg = | |||
| | | lat min = | ||
| | | long deg = | ||
| | | long min = | ||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
}} | }} | ||
</pre> | </pre> | ||
Line 55: | Line 44: | ||
== Parameters == | == Parameters == | ||
The parameters below are listed in the order displayed by the infobox. | The parameters below are listed in the order displayed by the infobox. The exception is latitude and longitude which are not placed in the infobox, but are displayed on the upper right side of the page via the {{tl|coord}} template. | ||
=== Name === | === Name === | ||
Line 67: | Line 56: | ||
; seal size : (optional) Allows changing image size from 75px default (IMPORTANT: omit this parameter if not used; leaving it blank will cause the image to display full size) | ; seal size : (optional) Allows changing image size from 75px default (IMPORTANT: omit this parameter if not used; leaving it blank will cause the image to display full size) | ||
=== Location maps | === Location maps === | ||
These parameters are used to specify the image file to be displayed. | |||
These parameters are used to specify the image file to be displayed. | ;county_map : the image name (name only), i.e. Or-baker.png | ||
;state_map : the image name (name only), i.e. Oregon.png | |||
;county_map | |||
:the image name (name only), i.e. Or-baker.png | |||
;state_map | |||
:the image name (name only), i.e. Oregon.png | |||
=== Date founded === | |||
The old way of specifying this was via the '''founded''' parameter. Although that still works, the new method is via the following parameters. The year and date use the {{tl|AutoLink}} template to automatically generate a WikiLink if an article with a matching name exists. | |||
The old way of specifying this was via the '''founded''' parameter. Although that still works, the new method is via the following parameters. | |||
; founded year : if you include a reference, the auto-wikilink won't work, so add [[ ]] around the year | ; founded year : if you include a reference, the auto-wikilink won't work, so add [[ ]] around the year | ||
; founded date : (optional) syntax is: February 1 | ; founded date : (optional) syntax is: February 1 | ||
; founded title : (optional) text to replace the default heading "Founded" (IMPORTANT: omit this parameter if not used; leaving it blank will cause a blank box to left of year) | ; founded title : (optional) text to replace the default heading "Founded" (IMPORTANT: omit this parameter if not used; leaving it blank will cause a blank box to left of year) | ||
=== County seat === | |||
The old way of specifying this was via the '''seat''' parameter. Although that still works, a new method that automatically generates the WikiLink is shown below. | The old way of specifying this was via the '''seat''' parameter. Although that still works, a new method that automatically generates the WikiLink is shown below. | ||
; seat wl : name of county seat; the wikilink is created for you: "City" results in "<nowiki>[[City, State|City]]</nowiki>" | ; seat wl : name of county seat; the wikilink is created for you: "City" results in "<nowiki>[[City, State|City]]</nowiki>" | ||
=== County | === County motto === | ||
; motto : (optional) the county motto | |||
; | |||
;web | === Official county web site === | ||
:(optional) url for | ; web : (optional) url for website, without "http://" and brackets, i.e. www.LaPorteCounty.org (template automatically generates external link) | ||
=== Source of county name === | === Source of county name === | ||
; named for : (optional) text describing meaning of county's name | ; named for : (optional) text describing meaning of county's name | ||
=== County flag === | === County flag === | ||
Line 137: | Line 95: | ||
; ex image size : (optional) allows changing image size from 200px default (IMPORTANT: omit this parameter if not used; leaving it blank will cause the image to display full size) | ; ex image size : (optional) allows changing image size from 200px default (IMPORTANT: omit this parameter if not used; leaving it blank will cause the image to display full size) | ||
; ex image cap : (optional) a caption displayed in small text below the extra image | ; ex image cap : (optional) a caption displayed in small text below the extra image | ||
=== Footnotes === | === Footnotes === | ||
; footnotes : (optional) text to display next at bottom of infobox (no heading) | ; footnotes : (optional) text to display next at bottom of infobox (no heading) | ||
== | === Latitude and longitude === | ||
These parameters are use to place [[geographic coordinates]] in the upper right corner of the page (outside the infobox) via the {{tl|coord}} template. The [[latitude]] and [[longitude]] must be whole [[Geographic coordinate system#Degrees: a measurement of angle|degrees and minutes]] (displayed 38°25′N, 76°05′W). If entering degrees only, the minutes default to zero. | |||
| | |||
NOTE: These parameters do not currently support [[decimal degrees]] (displayed 38.42, -76.08) or whole degrees with decimal minutes (displayed 38°25.9', -76°05.4' or 38°25.9'N, 76°05.4'W). | |||
''' | |||
; lat deg : (optional) degrees of latitude North, i.e. 38 | |||
; lat min : (optional) minutes of latitude North, i.e. 25 (defaults to zero if omitted) | |||
; long deg : (optional) degrees of longitude West, i.e. 76 or 076 (do not prefix this with "-" as that will display latitude East) | |||
; long min : (optional) minutes of longitude West, i.e. 5 or 05 (defaults to zero if omitted) | |||
In some cases it may be preferable to omit the latitude/longitude parameters and manually add the {{tl|coord}} template to the article. The following is an example that includes decimal degrees, displays them in D/M/S format, and notes the source of the coordinates: | |||
:<code><nowiki>{{coord|38.42|-76.08|format=dms|display=title|type:adm2nd_region:US-MD_source:UScensus1990}}</nowiki></code> | |||
| | |||
| | |||
}} | |||
</ | |||
== Microformat == | |||
{{UF-hcard-geo}} | |||
}} | |||
<includeonly> | <includeonly> | ||
[[Category: | [[Category:United States subdivision infobox templates|County]] | ||
[[Category:United States county infobox templates| ]] | |||
</includeonly> | </includeonly> |
Revision as of 01:11, 10 August 2009
![]() |
This is a documentation subpage for Template:Infobox U.S. County (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Template:Template sandbox notice
{{Infobox U.S. County}} is the standard infobox used for all county articles in the United States.
Other templates that are helpful for U.S. County articles:
- USCensusPop - lists the population of the county per decade.
- Coord - a cool template that displays the coordinates of the county. Notes about this one:
View Template:Infobox U.S. County/Sample to see how this infobox is rendered.
Usage[edit source]
This blank template excludes some optional parameters that must be omitted if not used (will not work properly if left blank), plus some older parameters that still work but have been replaced by newer parameter names. It also excludes square kilometer (km2) parameters that are automatically calculated (replace "_sq_mi" with "_km2" to enter square kilometers instead and have the square miles calculated). See the parameter documentation below for more details.
The parameters are listed in the order displayed by the infobox. The exception is latitude and longitude which are not placed in the infobox, but are displayed on the upper right side of the page via the {{coord}} template.
{{Infobox U.S. County | county = | county_map = | state = | state_map = | seal = | founded year = | founded date = | seat wl = | motto = | web = | named for = | flag = | logo = | ex image = | ex image cap = | footnotes = | lat deg = | lat min = | long deg = | long min = }} |
Parameters[edit source]
The parameters below are listed in the order displayed by the infobox. The exception is latitude and longitude which are not placed in the infobox, but are displayed on the upper right side of the page via the {{coord}} template.
Name[edit source]
These parameters specify the name of the county and state and are displayed in the infobox title as "County, State" (IMPORTANT: do not WikiLink these with [[ ]] because they are used for other purposes in the template code).
- county
- the county name including the word "County", i.e. Dorchester County
- state
- the state name, i.e. Maryland
County seal[edit source]
An image of the county seal can be displayed near the top of the infobox, immediately below the title. Use only the file name, without the Image: or File: prefix.
- seal
- (optional) County seal image (name only), i.e. Dorchester County md seal.png
- seal size
- (optional) Allows changing image size from 75px default (IMPORTANT: omit this parameter if not used; leaving it blank will cause the image to display full size)
Location maps[edit source]
These parameters are used to specify the image file to be displayed.
- county_map
- the image name (name only), i.e. Or-baker.png
- state_map
- the image name (name only), i.e. Oregon.png
Date founded[edit source]
The old way of specifying this was via the founded parameter. Although that still works, the new method is via the following parameters. The year and date use the {{AutoLink}} template to automatically generate a WikiLink if an article with a matching name exists.
- founded year
- if you include a reference, the auto-wikilink won't work, so add [[ ]] around the year
- founded date
- (optional) syntax is: February 1
- founded title
- (optional) text to replace the default heading "Founded" (IMPORTANT: omit this parameter if not used; leaving it blank will cause a blank box to left of year)
County seat[edit source]
The old way of specifying this was via the seat parameter. Although that still works, a new method that automatically generates the WikiLink is shown below.
- seat wl
- name of county seat; the wikilink is created for you: "City" results in "[[City, State|City]]"
County motto[edit source]
- motto
- (optional) the county motto
Official county web site[edit source]
- web
- (optional) url for website, without "http://" and brackets, i.e. www.LaPorteCounty.org (template automatically generates external link)
Source of county name[edit source]
- named for
- (optional) text describing meaning of county's name
County flag[edit source]
An image of the county flag can be displayed near the bottom of the infobox. Use only the file name, without the Image: or File: prefix.
- flag
- (optional) county flag image (name only), i.e. Dorchester County flag.png
- flag size
- (optional) allows changing image size from 100px default (IMPORTANT: omit this parameter if not used; leaving it blank will cause the image to display full size)
County logo[edit source]
An image of the county logo can be displayed near the bottom of the infobox. Use only the file name, without the Image: or File: prefix.
- logo
- (optional) county logo image (name only), i.e. Dorchester County logo.png
- logo size
- (optional) allows changing image size from 100px default (IMPORTANT: omit this parameter if not used; leaving it blank will cause the image to display full size)
Extra image[edit source]
An additional image can be displayed near the bottom of the infobox. Use only the file name, without the Image: or File: prefix.
- ex image
- (optional) extra image (name only), i.e. Dorchester County courthouse.jpg
- ex image size
- (optional) allows changing image size from 200px default (IMPORTANT: omit this parameter if not used; leaving it blank will cause the image to display full size)
- ex image cap
- (optional) a caption displayed in small text below the extra image
Footnotes[edit source]
- footnotes
- (optional) text to display next at bottom of infobox (no heading)
Latitude and longitude[edit source]
These parameters are use to place geographic coordinates in the upper right corner of the page (outside the infobox) via the {{coord}} template. The latitude and longitude must be whole degrees and minutes (displayed 38°25′N, 76°05′W). If entering degrees only, the minutes default to zero.
NOTE: These parameters do not currently support decimal degrees (displayed 38.42, -76.08) or whole degrees with decimal minutes (displayed 38°25.9', -76°05.4' or 38°25.9'N, 76°05.4'W).
- lat deg
- (optional) degrees of latitude North, i.e. 38
- lat min
- (optional) minutes of latitude North, i.e. 25 (defaults to zero if omitted)
- long deg
- (optional) degrees of longitude West, i.e. 76 or 076 (do not prefix this with "-" as that will display latitude East)
- long min
- (optional) minutes of longitude West, i.e. 5 or 05 (defaults to zero if omitted)
In some cases it may be preferable to omit the latitude/longitude parameters and manually add the {{coord}} template to the article. The following is an example that includes decimal degrees, displays them in D/M/S format, and notes the source of the coordinates:
{{coord|38.42|-76.08|format=dms|display=title|type:adm2nd_region:US-MD_source:UScensus1990}}
Microformat[edit source]