Template:Infobox U.S. County/docEdit This Page

From FamilySearch Wiki

< Template:Infobox U.S. County(Difference between revisions)
m (Examples)
(Date founded: remove ref to {{AutoLink}} as template no longer uses it)
 
(5 intermediate revisions by 2 users not shown)
Line 20: Line 20:
 
| seal size            =
 
| seal size            =
 
| county              =
 
| county              =
| boundary_map   =
+
| boundary_map         =
 
| county_map          =
 
| county_map          =
 
| state                =  
 
| state                =  
 
| state_map            =
 
| state_map            =
| latd               =  
+
| latd                 =  
 
| longd                =  
 
| longd                =  
 
| founded title        =
 
| founded title        =
 
| founded year        =  
 
| founded year        =  
 
| founded date        =  
 
| founded date        =  
 +
| parent county        =
 
| motto                =  
 
| motto                =  
 
| seat                =
 
| seat                =
Line 34: Line 35:
 
| building image      =
 
| building image      =
 
| building image size  =
 
| building image size  =
 +
| building image cap  =
 
| building address    =
 
| building address    =
 
| web                  =  
 
| web                  =  
Line 46: Line 48:
 
| ex image size        =
 
| ex image size        =
 
| ex image cap        =  
 
| ex image cap        =  
| adoption_sign =   
+
| adoption_sign       =   
 
| footnotes            =  
 
| footnotes            =  
 
}}
 
}}
Line 86: Line 88:
 
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''.
 
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''.
  
=== Date founded ===
+
=== Facts ===
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.
+
==== 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 motto ===
+
==== Parent County ====
 +
; 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>
 +
 
 +
==== County motto ====
 
; motto            : (optional) the county motto
 
; motto            : (optional) the county motto
  
=== County seat ===
+
==== 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>"
Line 103: Line 109:
 
; building image          : (optional) building image (name only), i.e. Dorchester County courthouse.jpg
 
; 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 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
 
;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
  
=== Official county web site ===
+
=== Official county web site ===
; web               : (optional) url for website, without "http://" and brackets, i.e. www.LaPorteCounty.org (template automatically generates external link)
+
 
 +
;web &nbsp;
 +
:(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 ===
 
=== Source of county name ===
Line 140: Line 149:
 
<div style="font-size:90%;">{{hidden begin
 
<div style="font-size:90%;">{{hidden begin
 
| toggle=left |titlestyle=font-size:120%;
 
| toggle=left |titlestyle=font-size:120%;
| title=Example for Anderson County, Texas}}
+
| title=Example for [[Anderson County, Texas]]}}
 
'''Code'''
 
'''Code'''
 
<pre style="overflow:auto">
 
<pre style="overflow:auto">
Line 150: Line 159:
 
| founded year = 1846
 
| founded year = 1846
 
| founded date = March 24
 
| founded date = March 24
 +
| parent county = [[Houston County, Texas|Houston]]
 
| seat wl = Palestine
 
| seat wl = Palestine
 
| building image = TexasAndersonCourthouse.jpg
 
| building image = TexasAndersonCourthouse.jpg
Line 167: Line 177:
 
| founded year = 1846
 
| founded year = 1846
 
| founded date = March 24
 
| founded date = March 24
 +
| parent county = [[Houston County, Texas|Houston]]
 
| seat wl = Palestine
 
| seat wl = Palestine
 
| building image = TexasAndersonCourthouse.jpg
 
| building image = TexasAndersonCourthouse.jpg
Line 174: Line 185:
 
}} {{hidden end}}{{closing div}}
 
}} {{hidden end}}{{closing div}}
 
{{clear}}
 
{{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:Infobox templates|U.S. County]]
 
[[Category:Infobox templates|U.S. County]]
 
</includeonly>
 
</includeonly>

Latest 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

  • This page was last modified on 19 August 2011, at 16:08.
  • This page has been accessed 435 times.