Infobox U.S. county | |
---|---|
[[File:Map of {{{state}}} highlighting {{{county}}}.svg|300px|alt=Map of {{{state}}} highlighting|Location within the U.S. state of [[{{{state}}}]]]] Location within the U.S. state of [[{{{state}}}]] | |
[[File:{{{state}}} in United States.svg|300px|alt=Map of the United States highlighting {{{state}}}|{{{state}}}'s location within the U.S.]] {{{state}}}'s location within the U.S. | |
Country | ![]() |
![]() | This template is used on approximately 3,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Preview message: Transclusion count updated automatically (see documentation). |
![]() | This template is a customized wrapper for {{Infobox settlement}} and as such included in Category:Templates calling Infobox settlement. Any field from {{Infobox settlement}} can work so long as it is added to this template first. It will also emit the same hCard and Geo microformats as {{Infobox settlement}} . Questions? Just ask here or over at Template talk:Infobox settlement. |
![]() | This template uses Lua: |
{{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:
{{{county}}} | |
---|---|
{{{type}}} | |
{{{official_name}}} | |
[[File:{{{ex image}}}|{{{ex image size}}}|{{{ex image cap}}}]] {{{ex image cap}}} | |
[[File:{{{flag}}}|{{{flag size}}}|border|Flag of {{{county}}}]] [[{{{flag wl}}}|Flag]] [[File:{{{seal}}}|{{{seal size}}}|Official seal of {{{county}}}]] [[{{{seal wl}}}|Seal]] [[File:{{{logo}}}|{{{logo size}}}|Official logo of {{{county}}}]] Logo | |
Nickname: {{{nickname}}} | |
Motto: {{{motto}}} | |
[[File:Map of {{{state}}} highlighting {{{map_county}}}.svg|300px|alt=Map of {{{state}}} highlighting {{{county}}}|Location within the U.S. state of [[{{{state}}}]]]] Location within the U.S. state of [[{{{state}}}]] | |
[[File:{{{state}}} in United States.svg|300px|alt=Map of the United States highlighting {{{state}}}|{{{state}}}'s location within the U.S.]] {{{state}}}'s location within the U.S. | |
Coordinates: {{{coordinates}}} | |
Country | ![]() |
State | {{country data {{{state}}}|flag/core|name={{{state}}}|variant=|size=}} |
Founded | {{{founded date}}}, {{{founded year}}} |
Named for | {{{named for}}} |
Seat | [[{{{seat wl}}}, {{{state}}}|{{{seat wl}}}]] |
Largest {{{city type}}} | [[{{{largest city wl}}}, {{{state}}}|{{{largest city wl}}}]] |
Other cities | {{{other_cities}}} |
Government | |
• {{{leader_title}}} | {{{leader_name}}} |
Area {{{area_footnotes}}} | |
• Total | 336 sq mi (870 km2) |
• Land | 327 sq mi (850 km2) |
• Water | 8.9 sq mi (23 km2) 2.6% |
Population ([[{{{population_as_of}}} United States census|{{{population_as_of}}}]]){{{population_footnotes}}} | |
• Total | {{{population_total}}} |
• Estimate ({{{pop_est_as_of}}}){{{pop_est_footnotes}}} | {{{population_est}}} |
Demonym | {{{demonym}}} |
Time zones | |
ZIP Codes | {{{ZIP codes}}} |
Area code | {{{area codes}}} |
Congressional districts | [[{{{state}}}'s {{{district}}} congressional district|{{{district}}}]], [[{{{state}}}'s {{{district2}}} congressional district|{{{district2}}}]] |
Website | www |
{{{footnotes}}} |
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 =
| type =
| official_name =
| state =
| ex image =
| ex image size =
| ex image cap =
| flag =
| flag size =
| flag border =
| flag wl =
| seal =
| seal size =
| seal wl =
| logo =
| logo size =
| nickname =
| motto =
| map_county =
| coordinates = <!-- {{coord|lat|N|lon|W|display=inline,title}} -->
| founded date =
| founded year =
| named for =
| seat wl =
| city type =
| largest city wl =
| other_cities =
| leader_title =
| leader_name =
| area_footnotes =
| area_total_sq_mi =
| area_land_sq_mi =
| area_water_sq_mi =
| area percentage =
| population_total =
| population_as_of =
| population_footnotes =
| population_est =
| pop_est_as_of =
| pop_est_footnotes =
| population_density_sq_mi =
| demonym =
| time zone =
| tz note =
| time zone 2 =
| tz note 2 =
| ZIP codes =
| area codes =
| district =
| district2 = <!-- up to |district10= -->
| web =
| footnotes =
}}
The parameters below are listed in the order displayed by the infobox. The exception is latitude and longitude, which do not appear in the infobox, but are displayed at the upper right corner of the page via the {{coord}} template.
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).
An additional image, depicting the skyline or other landmarks within a county, can be displayed near the top of the infobox. Use only the file name, without the Image: or File: prefix.
The infobox automatically displays two maps based on the names entered for the county and state parameters.
If red error appears instead of a county-in-state map, there is a mismatch between the name of the county on Wikipedia and its name in Commons, most often WP using an en dash and Commons using a hyphen. This can be worked around by feeding the |map_county=
parameter the name of the county as used in the Commons map file.
An image of the county flag can be displayed near the top of the infobox. Use only the file name, without the Image: or File: prefix.
no
to remove the border from the flag.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.
An image of the county logo can be displayed near the top of the infobox. Use only the file name, without the Image: or File: prefix.
The old way of specifying this was via the founded parameter. Although that still works, the new method is via the following parameters.
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 largest city parameter. Although that still works (and must be used if [[City, State]] is ambiguous), a new method that automatically generates the WikiLink is shown below.
Enter all numbers (except percentage) in raw format (i.e., 10000 not 10,000).
This new field naming style is based on similar fields in Template:Infobox settlement. This new style allows both the decennial (10-year) official census and estimate census to be displayed at the same time, along with each of their references too.
Enter all numbers in raw format (i.e., 10000 not 10,000).
Population density is the number of people per square mile or km2. Must be entered manually, as the template does not currently support automatic calculations based on population divided by the land area.
Enter all numbers in raw format (i.e., 10000 not 10,000).
Population density is the number of people per square mile or km2. Must be entered manually, as the template does not currently support automatic calculations based on population divided by area.
The template generates standard headings for U.S. time zones.
Using a value of |time zone=
other than the six bold-faced choices listed above will place the article in Category:Infobox U.S. county using a non-standard time zone.
Used to generate a list of United States congressional districts (U.S. House of Representatives) in the county. The article names are in the format "(state)'s (district) congressional district", e.g., Alabama's 1st congressional district or Delaware's at-large congressional district.
This parameter is used to place geographic coordinates in the upper right corner of the page (outside the infobox) via the {{coord}} template.
display=title
Example:
{{coord|38.42|N|76.08|W|format=dms|display=title|type:adm2nd_region:US-MD_source:wikidata}}
The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.
If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.
If it has a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
hCard uses HTML classes including:
Geo is produced by calling {{coord}}, and uses HTML classes:
Please do not rename or remove these classes nor collapse nested elements which use them.
When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name=
parameter.