Template:Infobox U.S. County

From FamilySearch Wiki

(Difference between revisions)
m (fix)
(45 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{lat deg|}}}| {{#if:{{{long deg|}}}| {{coord|{{{lat deg}}}|{{{lat min|0}}}|N|{{{long deg}}}|{{{long min|0}}}|W|type:adm2nd_region:US-{{StateAbbr|{{{state}}}}}|display=title}} }} }}
+
<includeonly>{{#if:{{{latd|}}}| {{#if:{{{longd|}}}| {{coord|{{{latd}}}|{{{latm|0}}}|N|{{{longd}}}|{{{longm|0}}}|W|type:adm2nd_region:US-{{StateAbbr|{{{state}}}}}|display=title}} }} }}
{| class="infobox vcard" cellpadding="3" style="width: 21em; font-size: 95%; text-align: left; clear:right; float:right; margin: 0 0 0.5em 1em;"
+
{| class="infobox vcard" cellpadding="3" style="width: 21em; font-size: 95%; text-align: left; clear:right; float:right; margin: 0 0 0.5em 1em; border: 1px solid #999; border-right-width: 2px; border-bottom-width: 2px;"
 
|-
 
|-
 
| colspan="2" style="text-align: center; font-size: larger;" | '''<span class="fn org">{{{county}}}</span>, <span class="adr"><span class="region">{{{state}}}</span></span>'''
 
| colspan="2" style="text-align: center; font-size: larger;" | '''<span class="fn org">{{{county}}}</span>, <span class="adr"><span class="region">{{{state}}}</span></span>'''
 +
|-
 +
{{#if: {{{digital collection|}}}|
 +
{{!}} colspan="2" style="text-align: center;" {{!}} {{{digital collection|}}} }}
 
|-
 
|-
 
{{#if: {{{seal|}}}|
 
{{#if: {{{seal|}}}|
Line 9: Line 12:
 
|colspan="2" style="text-align: center; background:#E0E0E0; "| '''Map'''
 
|colspan="2" style="text-align: center; background:#E0E0E0; "| '''Map'''
 
|-
 
|-
|colspan="2" style="text-align: center;"| [[Image:Map of {{{state}}} highlighting {{{county}}}.svg|{{#switch:{{{state}}}|New Jersey =120px|Vermont =120px|Maine=130px|Delaware=120px|New Hampshire=110px|Illinois=130px|Alabama=120px|Mississippi=120px|Ohio=180px|Indiana=130px|Nevada=130px|Idaho=130px|200px}}|Map of {{{state|}}} highlighting {{{county|}}} ]]<br>Location in the state of {{#switch:{{{state}}}  
+
{{#if: {{{boundary_map|}}}|
 +
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{boundary_map|}}}|{{{boundary_map_size|200}}}px|Boundary map of {{{county|}}}, {{{state|}}}]]}}
 +
|-
 +
{{#if: {{{county_map|}}}|
 +
{{!}} colspan="2" style="text-align: center;"{{!}} [[Image:{{{county_map}}}|{{#switch:{{{state}}}|New Jersey =120px|Vermont =120px|Maine=130px|Delaware=120px|New Hampshire=110px|Illinois=130px|Alabama=120px|Mississippi=120px|Ohio=180px|Indiana=130px|Nevada=130px|Idaho=130px|200px}}|Map of {{{state|}}} highlighting {{{county|}}} ]]<br>Location in the state of {{#switch:{{{state}}}  
 
| Georgia = [[Georgia (U.S. state)|Georgia]]
 
| Georgia = [[Georgia (U.S. state)|Georgia]]
| [[{{{state|}}}]]}}
+
| [[{{{state|}}}]]}} }}
|- <!-- It seems that the U.S. maps that show one state highlighted are named "Map of USA MD.svg" (for Maryland, as an example. This switch statement looks at the state name and replaces it with the two-letter abbreviation. This way, we can simply call "Map of USA {{Switch for state}} without having to manually update every county's page. User:Timneu22 February 18 -->
+
|-  
|colspan="2" style="text-align: center;" {{!}} [[Image:Map of USA {{#switch:{{{state}}}
+
{{#if: {{{state_map|}}}|
| Alabama = AL.svg
+
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{state_map}}}{{!}} Map of the USA highlighting {{{state}}}{{!}}200px{{!}}Map of the U.S. highlighting {{{state}}}]]<br>Location of {{{state}}} in the [[United States|U.S.]]}}
| Alaska = AK full.png
+
| Arizona = AZ.svg
+
| Arkansas = AR.svg
+
| California = CA.svg
+
| Colorado = CO.svg
+
| Connecticut = CT.svg
+
| Delaware = DE.svg
+
| Florida = FL.svg
+
| Georgia = GA.svg
+
| Hawaii = HI full.png | Hawai{{okina}}i = HI full.png
+
| Idaho = ID.svg
+
| Illinois = IL.svg
+
| Indiana = IN.svg
+
| Iowa = IA.svg
+
| Kansas = KS.svg
+
| Kentucky = KY.svg
+
| Louisiana = LA.svg
+
| Maine = ME.svg
+
| Maryland = MD.svg
+
| Massachusetts = MA.svg
+
| Michigan = MI.svg
+
| Minnesota = MN.svg
+
| Mississippi = MS.svg
+
| Missouri = MO.svg
+
| Montana = MT.svg
+
| Nebraska = NE.svg
+
| Nevada = NV.svg
+
| New Hampshire = NH.svg
+
| New Jersey = NJ.svg
+
| New Mexico = NM.svg
+
| New York = NY.svg
+
| North Carolina = NC.svg
+
| North Dakota = ND.svg
+
| Ohio = OH.svg
+
| Oklahoma = OK.svg
+
| Oregon = OR.svg
+
| Pennsylvania = PA.svg
+
| Rhode Island = RI.svg
+
| South Carolina = SC.svg | South&nbsp;Carolina = SC.svg
+
| South Dakota = SD.svg
+
| Tennessee = TN.svg
+
| Texas = TX.svg
+
| Utah = UT.svg
+
| Vermont = VT.svg
+
| Virginia = VA.svg
+
| Washington = WA.svg
+
| West Virginia = WV.svg
+
| Wisconsin = WI.svg
+
| Wyoming = WY.svg
+
| ERROR, wrong state name. looking for Map of USA XX.svg where XX is the two-letter abbreviation of the state}} {{!}} Map of the USA highlighting {{{state}}}{{!}}200px{{!}}Map of the U.S. highlighting {{{state}}}]]<br>{{{state}}}'s location in the [[United States|U.S.]]
+
 
|-
 
|-
| colspan="2" style="text-align: center; background:#E0E0E0;" | '''Statistics'''
+
| colspan="2" style="text-align: center; background:#E0E0E0;" | '''Facts'''
 
|- class="note"
 
|- class="note"
 
!style="background:#efefef;"| {{{founded title|Founded}}} <!-- old way, use "founded". new way: use date, year (and automatically create links-->
 
!style="background:#efefef;"| {{{founded title|Founded}}} <!-- old way, use "founded". new way: use date, year (and automatically create links-->
 
| {{#if:{{{founded|}}}|{{{founded}}}
 
| {{#if:{{{founded|}}}|{{{founded}}}
| {{#if:{{{founded date|}}}| {{AutoLink|{{{founded date}}}}}, {{AutoLink|{{{founded year|}}}}}
+
| {{#if:{{{founded date|}}}| {{{founded date}}}, {{{founded year|}}}
| {{#if:{{{founded year|}}}| {{AutoLink|{{{founded year|}}}}} | ''information needed''}} }} }}
+
| {{#if:{{{founded year|}}}| {{{founded year|}}} | ''information needed''}} }} }}
 
|-
 
|-
!style="background:#efefef;"| [[County seat|Seat]]<!-- use old way and new way -->
+
{{#if: {{{parent county|}}}|
| {{#if:{{{seat|}}}|{{{seat}}}
+
! style="background:#efefef;" {{!}} {{{parent county title|Parent County}}}  
| {{#if:{{{seat wl|}}}|[[{{{seat wl}}}, {{{state}}}{{!}}{{{seat wl}}}]]}} }}
+
{{!}} {{{parent county}}} }}
|-
+
{{#if: {{{largest city|}}}|<!-- OLD WAY -->
+
! style="background:#efefef" {{!}} Largest city
+
{{!}} {{{largest city}}} }}
+
|-
+
{{#if: {{{largest city wl|}}}|<!-- NEW WAY; if a user has "largest city" and "largest city wl", they can just correct it-->
+
! style="background:#efefef" {{!}} Largest {{{city type|city}}}
+
{{!}} {{#ifeq: {{{largest city wl}}}|{{{seat wl}}}|{{{largest city wl}}}|[[{{{largest city wl}}}, {{{state}}}{{!}}{{{largest city wl}}}]] }} }}
+
 
|-
 
|-
 
{{#if: {{{motto|}}}|<!-- OLD WAY -->
 
{{#if: {{{motto|}}}|<!-- OLD WAY -->
Line 89: Line 38:
 
{{!}} {{{motto}}} }}
 
{{!}} {{{motto}}} }}
 
|-
 
|-
!style="background:#efefef;"| [[Area]]<br>&nbsp;- Total<br>&nbsp;- Land<br>&nbsp;- Water
+
!style="background:#efefef;"| Seat<!-- use old way and new way -->
| <br> {{#if:{{{area_total_sq_mi|}}}|{{formatnum:{{{area_total_sq_mi|}}}}}&nbsp;[[square mile|sq&nbsp;mi]]|{{#if:{{{area_total_km2|}}}|{{formatnum:{{#expr:{{{area_total_km2|}}}/ 2.589988110336 round 0}}}}&nbsp;[[square mile|sq&nbsp;mi]]}} }} {{#if:{{{area_total_km2|}}}|({{formatnum:{{{area_total_km2|}}}}}&nbsp;[[square kilometre|km²]])|{{#if:{{{area_total_sq_mi|}}}|({{formatnum:{{#expr:{{{area_total_sq_mi|}}}* 2.589988110336 round 0}}}}&nbsp;[[square kilometre|km²]]) }}}}<br>{{#if:{{{area_land_sq_mi|}}}|{{formatnum:{{{area_land_sq_mi|}}}}}&nbsp;sq&nbsp;mi|{{#if:{{{area_land_km2|}}}|{{formatnum:{{#expr:{{{area_land_km2|}}}/ 2.589988110336 round 0}}}}&nbsp;sq&nbsp;mi}} }} {{#if:{{{area_land_km2|}}}|({{formatnum:{{{area_land_km2|}}}}}&nbsp;km²)|{{#if:{{{area_land_sq_mi|}}}|({{formatnum:{{#expr:{{{area_land_sq_mi|}}}* 2.589988110336 round 0}}}}&nbsp;km²) }}}}<br>{{#if:{{{area_water_sq_mi|}}}|{{formatnum:{{{area_water_sq_mi|}}}}}&nbsp;sq&nbsp;mi|{{#if:{{{area_water_km2|}}}|{{formatnum:{{#expr:{{{area_water_km2|}}}/ 2.589988110336 round 0}}}}&nbsp;sq&nbsp;mi}} }} {{#if:{{{area_water_km2|}}}|({{formatnum:{{{area_water_km2|}}}}}&nbsp;km²)|{{#if:{{{area_water_sq_mi|}}}|({{formatnum:{{#expr:{{{area_water_sq_mi|}}}* 2.589988110336 round 0}}}}&nbsp;km²) }}}}, {{{area percentage|}}}
+
| {{#if:{{{seat|}}}|{{{seat}}}
 +
| {{#if:{{{seat wl|}}}|[[{{{seat wl}}}, {{{state}}}{{!}}{{{seat wl}}}]]}} }}
 
|-
 
|-
!style="background:#efefef;"| [[Population]]{{#if:{{{census estimate yr|}}}|<sup>Est.</sup>||}}<br>&nbsp;-&nbsp;{{#if: {{{census yr|}}}|([[United States Census, {{{census yr}}}|{{{census yr}}}]])<br>&nbsp;-}}{{#if: {{{census estimate yr|}}}|([[United States Census Bureau|{{{census estimate yr}}}]])<br>&nbsp;-}} [[Population density|Density]]
+
| colspan="2" style="text-align: center; background:#E0E0E0;" | '''Courthouse'''
|<br> {{formatnum:{{{pop|}}}}} <br> {{#if:{{{density_sq_mi|}}}|{{formatnum:{{{density_sq_mi|}}}}}/sq&nbsp;mi|{{#if:{{{density_km2|}}}|{{formatnum:{{#expr:{{{density_km2|}}}* 2.589988110336 round 0}}}}/sq&nbsp;mi}} }} {{#if:{{{density_km2|}}}|({{formatnum:{{{density_km2|}}}}}/km²)|{{#if:{{{density_sq_mi|}}}|({{formatnum:{{#expr:{{{density_sq_mi|}}}/ 2.589988110336 round 0}}}}/km²) }}}}
+
 
|-
 
|-
{{#if: {{{time zone|}}}|
+
{{#if: {{{building image|}}}|
! style="background:#efefef;" {{!}} [[Time zone]]
+
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{building image}}}|center|{{{building image size|200}}}px]]<small>{{{building image cap|}}}</small>}}
{{!}} {{#switch:{{{time zone}}}
+
| Eastern = [[North American Eastern Time Zone|Eastern]]: [[Coordinated Universal Time|UTC-5]]/[[Daylight saving time|-4]]
+
| Central = [[North American Central Time Zone|Central]]: [[Coordinated Universal Time|UTC-6]]/[[Daylight saving time|-5]]
+
| Mountain = {{#ifeq:{{{state}}}|Arizona|[[Mountain Time Zone|Mountain]]: [[Coordinated Universal Time|UTC-7]]|[[Mountain Time Zone|Mountain]]: [[Coordinated Universal Time|UTC-7]]/[[Daylight saving time|-6]]}}
+
| Pacific = [[Pacific Time Zone|Pacific]]: [[Coordinated Universal Time|UTC-8]]/[[Daylight saving time|-7]]
+
| Alaska = [[Alaska Time Zone|Alaska]]: [[Coordinated Universal Time|UTC-9]]/[[Daylight saving time|-8]]
+
| Hawaii = [[Hawaii-Aleutian time zone]]: [[Coordinated Universal Time|UTC-10]]
+
| {{{time zone}}} : {{{UTC offset|}}}/{{{DST offset|}}}
+
}} }}
+
 
|-
 
|-
{{#if: {{{district|}}}|
+
{{#if: {{{building address|}}}|
! style="background:#efefef;" {{!}}Congressional district{{#if: {{{district2|}}}|s}}
+
! style="background:#efefef" {{!}} Address
{{!}} {{#switch: {{{state}}}
+
{{!}} {{{building address}}} }}
|Texas
+
|Kansas
+
|Illinois
+
|Arkansas
+
|Massachusetts = [[{{{state}}}' {{{district}}} congressional district|{{{district}}}]]
+
|[[{{{state}}}'s {{{district}}} congressional district|{{{district}}}]]
+
}}}}{{#if: {{{district2|}}}|
+
{{#switch: {{{state}}}
+
|Texas
+
|Kansas
+
|Illinois
+
|Arkansas
+
|Massachusetts =, [[{{{state}}}' {{{district2}}} congressional district|{{{district2}}}]]
+
|, [[{{{state}}}'s {{{district2}}} congressional district|{{{district2}}}]]
+
}}}}{{#if: {{{district3|}}}|
+
{{#switch: {{{state}}}
+
|Texas
+
|Kansas
+
|Illinois
+
|Arkansas
+
|Massachusetts =, [[{{{state}}}' {{{district3}}} congressional district|{{{district3}}}]]
+
|, [[{{{state}}}'s {{{district3}}} congressional district|{{{district3}}}]]
+
}} }}
+
 
|-
 
|-
 
{{#if: {{{web|}}}|
 
{{#if: {{{web|}}}|
{{!}} colspan="2" style="text-align: left; border-top: solid 1px #ccd2d9;" {{!}} '''Website:''' <span class="url">[http://{{{web|}}} {{{web|}}}]</span>}}
+
{{!}} colspan="2" style="text-align: left; border-top: solid 1px #ccd2d9;" {{!}} '''Website:''' <span class="url">{{URL|{{{web|}}}}}</span>}}
 
|- class="note"
 
|- class="note"
 
{{#if: {{{named for|}}}|
 
{{#if: {{{named for|}}}|
 
{{!}} colspan="2" style="text-align: left; border-top: solid 1px #ccd2d9;" {{!}} '''Named for:''' {{{named for}}}}}
 
{{!}} colspan="2" style="text-align: left; border-top: solid 1px #ccd2d9;" {{!}} '''Named for:''' {{{named for}}}}}
 +
|-
 +
{{#if: {{{named for image|}}}|
 +
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{named for image}}}|center|{{{named for image size|200}}}px]]}}
 
|-
 
|-
 
{{#if: {{{flag|}}}|
 
{{#if: {{{flag|}}}|
Line 149: Line 69:
 
|-
 
|-
 
{{#if: {{{ex image|}}}|
 
{{#if: {{{ex image|}}}|
{{!}} colspan="2" {{!}} [[Image:{{{ex image}}}|center|{{{ex image size|200}}}px]]<small>{{{ex image cap|}}}</small> }}
+
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{ex image}}}|center|{{{ex image size|200}}}px]]<small>{{{ex image cap|}}}</small> }}
 +
|-
 +
{{#if: {{{adoption_sign|}}}|
 +
{{!}} colspan="2" style="text-align: center;" {{!}} <center><div style="width:208px">{{ {{{adoption_sign|}}} |{{{custom_text|}}} }}</div></center>}}
 
|-
 
|-
 
<!----- footnotes ----->
 
<!----- footnotes ----->
Line 155: Line 78:
 
{{!}} colspan="2" style="text-align: left; border-top: solid 1px #ccd2d9;" {{!}} <small>{{{footnotes|}}}</small> }}
 
{{!}} colspan="2" style="text-align: left; border-top: solid 1px #ccd2d9;" {{!}} <small>{{{footnotes|}}}</small> }}
 
|}<!--Add the category automatically, except for some states-->{{#switch:{{{state}}}
 
|}<!--Add the category automatically, except for some states-->{{#switch:{{{state}}}
| Alaska=[[Category:Alaska boroughs]]
+
| Alaska={{{category|[[Category:Alaska boroughs]]}}}
| Georgia=[[Category:Georgia (U.S. state) counties]]
+
| Georgia={{{category|[[Category:Georgia (U.S. state) counties]]}}}
| Louisiana=[[Category:Louisiana parishes]]
+
| Louisiana={{{category|[[Category:Louisiana parishes]]}}}
| Washington=[[Category:Washington (U.S. state) counties]]
+
| Washington={{{category|[[Category:Washington (U.S. state) counties]]}}}
| {{#ifeq:{{NAMESPACE}}|Template talk| |[[Category:{{{state}}} counties]]}} }}</includeonly><noinclude>
+
| {{namespace detect | main  = {{{category|[[Category:{{{state}}} counties]]}}} | other = }}
 +
}}</includeonly><noinclude>
  
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 19:32, 16 November 2012


[view] [edit] [history] [purge] Documentation icon Template documentation

Contents

{{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:

Usage

This blank template includes 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. See the parameter documentation below for more details.

The parameters are listed in the order displayed by the infobox.

{{Infobox U.S. County
| seal                 = 
| seal size            =
| county               =
| boundary_map         =
| county_map           =
| state                = 
| state_map            =
| latd                 = 
| longd                = 
| founded title        =
| founded year         = 
| founded date         = 
| parent county        =
| motto                = 
| seat                 =
| seat wl              = 
| building image       =
| building image size  =
| building image cap   =
| building address     =
| web                  = 
| named for            = 
| named for image      =
| named for image size =
| flag                 = 
| flag size            =
| logo                 = 
| logo size            =
| ex image             = 
| ex image size        =
| ex image cap         = 
| adoption_sign        =  
| footnotes            = 
}}

Parameters

The parameters below are listed in the order displayed by the infobox.

Name

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

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

These parameters are used to specify the image file to be displayed.

boundary_map  
the image name (name only) i.e. Or-baker-boundary.png
county_map  
the image name (name only), i.e. Or-baker.png
state_map  
the image name (name only), i.e. Oregon.png

Coordinates

latd  
Latitude decimal degrees
longd  
Longitude decimal degrees

Note: If you wish to display degree, minutes and seconds use whole numbers and the additional parameters latm, lats, longm, longs and enter N or S for latNS and E or W for longEW.

Facts

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.

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)

Parent County

parent county 
(optional) use wikitext to add a link to the parent county. If more than one add <br /> between each one eg. [[Washington County, State|Washington]]<br/>[[Adams County, State|Adams]]

County motto

motto  
(optional) the county motto

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.

seat wl  
name of county seat; the wikilink is created for you: "City" results in "[[City, State|City]]"

County building

An image and address of the courthouse or city hall can be displayed. Use only the file name, without the Image: or File: prefix.

building image  
(optional) building image (name only), i.e. Dorchester County courthouse.jpg
building 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)
building image cap  
(optional) a caption displayed in small text below the building image
building address  
(optional) displayed in text below the building image, use <br/> to separate different lines (not dependant on image being shown

Official county web site

web  
(optional) url for official county website (not courthouse), without "http://" and brackets, i.e. www.LaPorteCounty.org (template automatically generates external link)

Source of county name

named for  
(optional) text describing meaning of county's name
named for image  
(optional) the named for image (name only)
named for 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)

County flag

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)

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

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

Adoption sign

A sign as set-up by the Adopt-a-page program

adoption_sign 
(optional) Name of the adoption sign (without braces) ie Adoption Example and not {{Adoption Example}}
custom_text 
(optional) Add addtional custom text to the adoption sign. Wiki markup allowed.

Footnotes

footnotes  
(optional) text to display next at bottom of infobox (no heading)

Examples