Template:Infobox U.S. County/doc

From FamilySearch Wiki

(Difference between revisions)
(remove area)
(Date founded: remove ref to {{AutoLink}} as template no longer uses it)
(26 intermediate revisions by 3 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 7: Line 6:
  
 
Other templates that are helpful for U.S. County articles:
 
Other templates that are helpful for U.S. County articles:
* [[Template:USCensusPop|USCensusPop]] - lists the population of the county per decade.
+
* [[Template:Historical populations|Historical populations]] - used to list 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.''
+
== Usage  ==
  
== 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.  
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 {{tl|coord}} template.
+
The parameters are listed in the order displayed by the infobox.  
{|style="background:transparent;"
+
 
|<pre>
+
{| style="background: none repeat scroll 0% 0% transparent;"
{{Infobox U.S. County
+
|-
| county             =  
+
| <pre>{{Infobox U.S. County
| county_map         =
+
| seal                =
| state             =  
+
| seal size            =
| state_map         =
+
| county               =
| seal              =  
+
| boundary_map         =
| founded year       =  
+
| county_map          =
| founded date       =  
+
| state               =  
| seat wl            =  
+
| state_map           =
| motto             =  
+
| latd                =
| pop                =  
+
| longd                =
| census yr          =  
+
| founded title        =
| census estimate yr =  
+
| founded year         =  
| density_sq_mi      =  
+
| founded date         =  
| time zone          =  
+
| parent county        =
| district          =  
+
| motto               =  
| district2          =  
+
| seat                =
| district3          =  
+
| seat wl              =  
<!-- up to: district18 -->
+
| building image      =
| web                =  
+
| building image size  =
| named for         =  
+
| building image cap  =
| flag               =  
+
| building address    =
| logo               =  
+
| web                  =  
| ex image          =  
+
| named for            =  
| ex image cap      =  
+
| named for image      =
| footnotes          =  
+
| named for image size =
| lat deg            =  
+
| flag                 =
| lat min            =  
+
| flag size            =
| long deg          =
+
| logo                 =  
| long min          =  
+
| logo size            =
 +
| ex image             =  
 +
| ex image size        =
 +
| ex image cap        =  
 +
| adoption_sign        =
 +
| footnotes            =  
 
}}
 
}}
 
</pre>
 
</pre>
Line 53: Line 55:
  
 
== Parameters ==
 
== Parameters ==
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.
+
The parameters below are listed in the order displayed by the infobox.  
  
 
=== Name ===
 
=== Name ===
Line 65: Line 67:
 
; 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.
+
;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 ===
+
These parameters are used to specify the image file to be displayed.
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.
+
 
 +
;boundary_map &nbsp;
 +
:the image name (name only) i.e. Or-baker-boundary.png
 +
;county_map &nbsp;
 +
:the image name (name only), i.e. Or-baker.png
 +
;state_map &nbsp;
 +
:the image name (name only), i.e. Oregon.png
 +
 
 +
=== Coordinates ===
 +
 
 +
;latd &nbsp;
 +
:Latitude decimal degrees
 +
 
 +
;longd &nbsp;
 +
: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 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 ===
+
==== Parent County ====
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.
+
; parent county : (optional) use wikitext to add a link to the parent county. If more than one add <nowiki><br /></nowiki> between each one eg. <tt><nowiki>[[Washington County, State|Washington]]<br/>[[Adams County, State|Adams]]</nowiki></tt>
; seat wl          : name of county seat; the wikilink is created for you: "City" results in "<nowiki>[[City, State|City]]</nowiki>"
+
  
=== County motto ===
+
==== County motto ====
 
; motto            : (optional) the county motto
 
; motto            : (optional) the county motto
  
=== Population ===
+
==== County seat ====
Enter all numbers in raw format (i.e. 10000 not 10,000).
+
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.
; pop                : the population of the county
+
; seat wl          : name of county seat; the wikilink is created for you: "City" results in "<nowiki>[[City, State|City]]</nowiki>"
; census yr          : the census year for the given population, i.e. 2000 - the year is linked to the U.S. census article in the format "United States Census, (year)", i.e. "United States Census, 2000"
+
; census estimate yr : (optional) to be used in place of '''census yr''' for years when no U.S. census was taken; i.e. 2006 - this displays "Est." next to the year and avoids a "red link" since there is no article for "United States Census, 2006"
+
  
=== Population density ===
+
=== County building ===
[[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.
+
An image and address of the courthouse or city hall can be displayed. Use only the file name, without the Image: or File: prefix.
; density_sq_mi      : population per square mile, i.e. 5000, which displays "5,000/sq mi (21/km²)"; population/km2 will be calculated automatically
+
; building image          : (optional) building image (name only), i.e. Dorchester County courthouse.jpg
; density_km2        : (optional) population per km2; if specified, the population/sq mi is calculated automatically
+
; 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 <code><nowiki><br/></nowiki></code> to separate different lines (not dependant on image being shown
  
=== Time zone ===
+
=== Official county web site  ===
The template generate standard headings for U.S. time zones
+
; time zone        : Eastern, Central, Mountain, Pacific, Alaska, or Hawaii. If entering anything else, use the old '''UTC offset''' and '''DST offset''' parameters.
+
:* 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: [[Mountain Time Zone|Mountain]]: [[Coordinated Universal Time|UTC-7]]/[[Daylight saving time|-6]]
+
:** exception for Arizona = [[Mountain Time Zone|Mountain]]: [[Coordinated Universal Time|UTC-7]]
+
:* 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]]
+
:* (other):  {{{time zone}}} : {{{UTC offset}}}/{{{DST offset}}}
+
  
=== U.S. Congressional Districts ===
+
;web &nbsp;
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", i.e. [[Alabama's 1st congressional district]] or [[Delaware's At-large congressional district]]. The template handles proper placement of the apostrophe in the article name for states ending in the letter "s" (Arkansas, Illinois, Kansas, Massachusetts, Texas).
+
:(optional) url for official county website (not courthouse), without "http://" and brackets, i.e. www.LaPorteCounty.org (template automatically generates external link)
; district          : (optional) use ordinal numbers (1st, 2nd, etc.) or At-large
+
; district2        : (optional) same as above, used when county lies in more than one district
+
; district3        : (optional) the parameter names continue in this format up to '''district18'''
+
 
+
=== Official county web site ===
+
; 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
 +
; 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 ===
 
=== County flag ===
Line 133: Line 137:
 
; 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
 +
 +
=== Adoption sign ===
 +
A sign as set-up by the [[Help:Adopt-a-page|Adopt-a-page]] program
 +
;adoption_sign : (optional) Name of the adoption sign (without braces) ie ''Adoption Example'' and not ''<nowiki>{{Adoption Example}}</nowiki>''
 +
;custom_text : (optional) Add addtional custom text to the adoption sign. [[Help:Wiki markup|Wiki markup]] allowed.
  
 
=== 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 ===
+
== Examples ==
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.
+
<div style="font-size:90%;">{{hidden begin
 +
| toggle=left |titlestyle=font-size:120%;
 +
| title=Example for [[Anderson County, Texas]]}}
 +
'''Code'''
 +
<pre style="overflow:auto">
 +
{{Infobox U.S. County
 +
| county = Anderson County
 +
| county_map = Tx-anderson.png
 +
| state = Texas
 +
| state_map = Texas.png
 +
| founded year = 1846
 +
| founded date = March 24
 +
| parent county = [[Houston County, Texas|Houston]]
 +
| seat wl = Palestine
 +
| building image = TexasAndersonCourthouse.jpg
 +
| building address = 500 N. Church Street,</br>#10, Palestine, TX 75801
 +
| named for = {{wpd|Kenneth Lewis Anderson|Kenneth L. Anderson}}, congressman and vice president of the Republic of Texas
 +
| adoption_sign = Adoption Hidden Ancestors
 +
}}
 +
</pre>
  
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).
+
'''Result'''
 
+
<hr/><br/>
; lat deg          : (optional) degrees of latitude North, i.e. 38
+
{{Infobox U.S. County
; lat min          : (optional) minutes of latitude North, i.e. 25 (defaults to zero if omitted)
+
| county = Anderson County
; long deg          : (optional) degrees of longitude West, i.e. 76 or 076 (do not prefix this with "-" as that will display latitude East)
+
| county_map = Tx-anderson.png
; long min          : (optional) minutes of longitude West, i.e. 5 or 05 (defaults to zero if omitted)
+
| state = Texas
 
+
| state_map = Texas.png
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:
+
| founded year = 1846
:<code><nowiki>{{coord|38.42|-76.08|format=dms|display=title|type:adm2nd_region:US-MD_source:UScensus1990}}</nowiki></code>
+
| founded date = March 24
 
+
| parent county = [[Houston County, Texas|Houston]]
== Microformat ==
+
| seat wl = Palestine
{{UF-hcard-geo}}
+
| building image = TexasAndersonCourthouse.jpg
 +
| building address = 500 N. Church Street,</br>#10, Palestine, TX 75801
 +
| named for = {{wpd|Kenneth Lewis Anderson|Kenneth L. Anderson}}, congressman and vice president of the Republic of Texas
 +
| adoption_sign = Adoption Hidden Ancestors|category=
 +
}} {{hidden end}}{{closing div}}
 +
{{clear}}
 +
<div style="font-size:90%;">{{hidden begin
 +
| toggle=left |titlestyle=font-size:120%;
 +
| title=Example for [[Yell County, Arkansas]]}}
 +
'''Code'''
 +
<pre style="overflow:auto">
 +
{{Infobox U.S. County
 +
| county = Yell County
 +
| county_map = Ar-yell.png
 +
| state = Arkansas
 +
| state_map = Arkansas.png
 +
| founded year = 1840
 +
| founded date = December 5
 +
| seat wl = Danville
 +
| adoption_sign = Adoption ARGenWeb
 +
| custom_text = <center>[mailto:gaylelt@comcast.net Gayle Triller], County Coordinator<br>'''[http://www.argenweb.net/yell/ Yell Co. ARGenWeb]'''</center>  
 +
}}
 +
</pre>
  
 +
'''Result'''
 +
<hr/><br/>
 +
{{Infobox U.S. County
 +
| county = Yell County
 +
| county_map = Ar-yell.png
 +
| state = Arkansas
 +
| state_map = Arkansas.png
 +
| founded year = 1840
 +
| founded date = December 5
 +
| seat wl = Danville
 +
| adoption_sign = Adoption ARGenWeb
 +
| custom_text = <center>[mailto:gaylelt@comcast.net Gayle Triller], County Coordinator<br>'''[http://www.argenweb.net/yell/ Yell Co. ARGenWeb]'''</center>
 +
}} {{hidden end}}{{closing div}}
 +
{{clear}}
 
<includeonly>
 
<includeonly>
[[Category:United States subdivision infobox templates|County]]
+
[[Category:Infobox templates|U.S. County]]
[[Category:United States county infobox templates| ]]
+
 
</includeonly>
 
</includeonly>

Revision as of 16:08, 19 August 2011

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