Template:Geographic reference

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

This template {{geographic reference}} or its shortcut {{GR}} is used on a very large number of Wikipedia articles to provide citations for Geographic references, mainly for locations in North America.

Usage

There are nine different references that can be created by {{GR}} for references in North America, and one that is used by locations in India. The nine possible North American citations are as follows:

{{GR|r1}}

Census Abbreviations
Abbreviation Meaning
STUSPS United States Postal Service State Abbreviation
GEOID Geographic Identifier - fully concatenated geographic code (State FIPS and Place FIPS)
ANSICODE American National Standards Insititute code
NAME Name
LSAD Legal/Statistical area descriptor.
FUNCSTAT Functional status of entity.
POP10 2010 Census population count.
HU10 2010 Census housing unit count.
ALAND Land Area (square meters) - Created for statistical purposes only.
AWATER Water Area (square meters) - Created for statistical purposes only.
ALAND_SQMI Land Area (square miles) - Created for statistical purposes only.
AWATER_SQMI Water Area (square miles) - Created for statistical purposes only.
INTPTLAT Latitude (decimal degrees) First character is blank or "-" denoting North or South latitude respectively
INTPTLONG Longitude (decimal degrees) First character is blank or "-" denoting East or West longitude respectively.

{{GR|r2}}

{{GR|r3}}

{{GR|r4}}

{{GR|r5}}

{{GR|r6}}

  • "Find a County". National Association of Counties. Retrieved 2011-06-07. 

{{GR|r7}}

{{GR|r8}}

{{GR|r9}}

To use one of these citations, pass the number of the reference to the template as a parameter: <ref name="GR1">{{cite web|url=http://www.census.gov/geo/www/gazetteer/gazette.html|publisher=[[United States Census Bureau]]|accessdate=2011-04-23|date=2011-02-12|title=US Gazetteer files: 2010, 2000, and 1990}}</ref> produces the first citation, <ref name="GR4">{{cite web|url=http://geonames.usgs.gov/pls/gnispublic|accessdate=2008-01-31|title=Geographic Names Information System|accessdate=2008-01-31|publisher=[[United States Geological Survey]]}}</ref> produces the fourth one, and so forth. To use the Indian reference, pass the name "India" to the template: {{cite web|url=http://www.censusindia.net/results/town.php?stad=A&state5=999|archiveurl=http://web.archive.org/web/20040616075334/http://www.censusindia.net/results/town.php?stad=A&state5=999|archivedate=2004-06-16|title= Census of India 2001: Data from the 2001 Census, including cities, villages and towns (Provisional)|accessdate=2008-11-01|publisher= Census Commission of India}}, producing:

  1. "Census of India 2001: Data from the 2001 Census, including cities, villages and towns (Provisional)". Census Commission of India. Archived from the original on 2004-06-16. Retrieved 2008-11-01. 

{{GR}} can be used either inside or outside <ref> tags. The default options, as shown above, are for use when the template is not enclosed in ref tags. The code for these options automatically includes the ref tags. If the ref tags are not required or desired, they can be omitted by adding an "r" before the reference number. So while <ref name="GR1" /> produces [1], a properly-formatted citation, {{GR|r1}} outputs ""US Gazetteer files: 2010, 2000, and 1990". United States Census Bureau. 2011-02-12. Retrieved 2011-04-23. ", the complete citation inline. Note that this option is not available with the Indian reference.

Date format

The optional dateform parameter is used to set the format for dates. Setting this parameter to "dateform=dmy" gives the date in the day month year format (e.g. 16 June 2004); "mdy" gives the date in the month day, year format (e.g. June 16, 2004); and "dateform=ymd" or "dateform=iso" give the date in the iso format (e.g. 2004-06-16). When this parameter is excluded, the date will default to ymd/iso format.

Example

Input

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<ref name="GR1" /> Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<ref>{{cite web|url=http://factfinder2.census.gov|publisher=[[United States Census Bureau]]|accessdate=2008-01-31|title=American FactFinder}}</ref> Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris.<ref>{{cite web|url=http://www.censusindia.net/results/town.php?stad=A&state5=999|archiveurl=http://web.archive.org/web/20040616075334/http://www.censusindia.net/results/town.php?stad=A&state5=999|archivedate=2004-06-16|title= Census of India 2001: Data from the 2001 Census, including cities, villages and towns (Provisional)|accessdate=2008-11-01|publisher= Census Commission of India}}</ref> Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor.<ref><ref name="GR3">{{cite web|url=http://geonames.usgs.gov|accessdate=2008-01-31|title=US Board on Geographic Names|publisher=[[United States Geological Survey]]|date=2007-10-25}}</ref></ref> Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque.{{cite web|url=http://geonames.usgs.gov/pls/gnispublic|accessdate=2008-01-31|title=Geographic Names Information System|accessdate=2008-01-31|publisher=[[United States Geological Survey]]}} Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat.{{cite web|url=http://www.censusindia.net/results/town.php?stad=A&state5=999|archiveurl=http://web.archive.org/web/20040616075334/http://www.censusindia.net/results/town.php?stad=A&state5=999|archivedate=2004-06-16|title= Census of India 2001: Data from the 2001 Census, including cities, villages and towns (Provisional)|accessdate=2008-11-01|publisher= Census Commission of India}} Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci.<ref name="GR7">{{cite web|url=http://tools.usps.com/go/ZipLookupAction!input.action|title=USPS - Look Up a ZIP Code|accessdate=2012-02-15|author=United States Postal Service|year=2012}}</ref> In hac habitasse platea dictumst.{{GR}}

Output

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.[1] Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.[2]

Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris.[3] Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor.Cite error: A <ref> tag is missing the closing </ref> (see the help page). Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque."Geographic Names Information System". United States Geological Survey. Retrieved 2008-01-31.  Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat."Census of India 2001: Data from the 2001 Census, including cities, villages and towns (Provisional)". Census Commission of India. Archived from the original on 2004-06-16. Retrieved 2008-11-01.  Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci.[4] In hac habitasse platea dictumst.Geographic reference error: 1=

Parameters

{{GR}} parameters
Parameter Mandatory or Optional Default Description
{1} Mandatory Undefined  
dateformat Optional ymd Formats the date in dmy, mdy, or ymd/iso format.
Parameter {1} values
Value Produces Code
India
or
india
"Census of India 2001: Data from the 2001 Census, including cities, villages and towns (Provisional)". Census Commission of India. Archived from the original on 2004-06-16. Retrieved 2008-11-01.  {{cite web|url=http://www.censusindia.net/results/town.php?stad=A&state5=999%7Carchiveurl=http://web.archive.org/web/20040616075334/http://www.censusindia.net/results/town.php?stad=A&state5=999%7Carchivedate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=16 June 2004|mdy=June 16, 2004|ymd|iso|2004-06-16}}|title= Census of India 2001: Data from the 2001 Census, including cities, villages and towns (Provisional)|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=1 November 2008|mdy=November 1, 2008|ymd|iso|2008-11-01}}|work= |publisher= Census Commission of India}}
1 [1] {{#tag:ref|{{cite web|url=http://www.census.gov/geo/www/gazetteer/gazette.html|publisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=23 April 2011|mdy=April 23, 2011|ymd|iso|2011-04-23}}|date={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=12 February 2011|mdy=February 12, 2011|ymd|iso|2011-02-12}}|title=US Gazetteer files: 2010, 2000, and 1990}}|name="GR1"}}
2 [5] {{#tag:ref|{{cite web|url=http://factfinder.census.gov|publisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=American FactFinder}}|name="GR2"}}
3 [6] {{#tag:ref|{{cite web|url=http://geonames.usgs.gov|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=US Board on Geographic Names|publisher=[[United States Geological Survey]]|date={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=25 October 2007|mdy=October 25, 2007|ymd|iso|2007-10-25}}}}|name="GR3"}}
4 [7] {{#tag:ref|{{cite web|url=http://geonames.usgs.gov/pls/gnispublic|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=Geographic Names Information System|publisher=[[United States Geological Survey]]}}|name="GR4"}}
5 [8] {{#tag:ref|{{cite web|url=http://www.nima.mil/gns/html/index.html|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=NGA GEOnet Names Server|publisher=[[National Geospatial-Intelligence Agency]]|date={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-30}}}}|name="GR5"}}
6 [9] {{#tag:ref|{{cite web|url=http://www.naco.org/Counties/Pages/FindACounty.aspx|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=7 June 2011|mdy=June 7, 2011|ymd|iso|2011-06-07}}|title=Find a County|publisher=National Association of Counties}}|name="GR6"}}
7 [4] {{#tag:ref|{{cite web |url=http://tools.usps.com/go/ZipLookupAction!input.action |title=USPS - Look Up a ZIP Code |accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=15 February 2012|mdy=February 15, 2012|ymd|iso|2012-02-15}} |author=United States Postal Service}}|name="GR7"}}
8 [10] {{#tag:ref|{{cite web|url=http://factfinder2.census.gov|publisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=14 May 2011|mdy=May 14, 2011|ymd|iso|2011-05-14}}|title=American FactFinder}}|name="GR8"}}
9 [11] {{#tag:ref|{{cite web|url=http://www.census.gov/prod/www/abs/decennial/|publisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=4 March 2012|mdy=March 4, 2012|ymd|iso|2012-03-04}}|title=Census of Population and Housing: Decennial Censuses}}|name="GR9"}}
r1 "US Gazetteer files: 2010, 2000, and 1990". United States Census Bureau. 2011-02-12. Retrieved 2011-04-23.  {{cite web|url=http://www.census.gov/geo/www/gazetteer/gazette.html%7Cpublisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=23 April 2011|mdy=April 23, 2011|ymd|iso|2011-04-23}}|date={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=12 February 2011|mdy=February 12, 2011|ymd|iso|2011-02-12}}|title=US Gazetteer files: 2010, 2000, and 1990}}
r2 "American FactFinder". United States Census Bureau. Retrieved 2008-01-31.  {{cite web|url=http://factfinder.census.gov%7Cpublisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=American FactFinder}}
r3 "US Board on Geographic Names". United States Geological Survey. 2007-10-25. Retrieved 2008-01-31.  {{cite web|url=http://geonames.usgs.gov%7Caccessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=US Board on Geographic Names|publisher=[[United States Geological Survey]]|date={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=25 October 2007|mdy=October 25, 2007|ymd|iso|2007-10-25}}}}
r4 "Geographic Names Information System". United States Geological Survey. Retrieved 2008-01-31.  {{cite web|url=http://geonames.usgs.gov/pls/gnispublic%7Caccessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=Geographic Names Information System|publisher=[[United States Geological Survey]]}}
r5 "NGA GEOnet Names Server". National Geospatial-Intelligence Agency. 2008-01-30. Retrieved 2008-01-31.  {{cite web|url=http://www.nima.mil/gns/html/index.html%7Caccessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=NGA GEOnet Names Server|publisher=[[National Geospatial-Intelligence Agency]]|date={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-30}}}}
r6 "Find a County". National Association of Counties. Retrieved 2011-06-07.  {{cite web|url=http://www.naco.org/Counties/Pages/FindACounty.aspx%7Caccessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=7 June 2011|mdy=June 7, 2011|ymd|iso|2011-06-07}}|title=Find a County|publisher=National Association of Counties}}
r7 United States Postal Service (2012). "USPS - Look Up a ZIP Code". Retrieved 2012-02-15.  {{cite web|url=http://tools.usps.com/go/ZipLookupAction!input.action%7Ctitle=USPS - Look Up a ZIP Code |accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=15 February 2012|mdy=February 15, 2012|ymd|iso|2012-02-15}} |author=United States Postal Service}}
r8 "American FactFinder". United States Census Bureau. Retrieved 2011-05-14.  {{cite web|url=http://factfinder2.census.gov%7Cpublisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=14 May 2011|mdy=May 14, 2011|ymd|iso|2011-05-14}}|title=American FactFinder}}
r9 "Census of Population and Housing: Decennial Censuses". United States Census Bureau. Retrieved 2012-03-04.  {{cite web|url=http://www.census.gov/prod/www/abs/decennial/%7Cpublisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=4 March 2012|mdy=March 4, 2012|ymd|iso|2012-03-04}}|title=Census of Population and Housing: Decennial Censuses}}

References produced

  1. ^ Cite error: The named reference GR1 was invoked but never defined (see the help page).
  2. ^ "American FactFinder". United States Census Bureau. Retrieved 2008-01-31. 
  3. ^ "Census of India 2001: Data from the 2001 Census, including cities, villages and towns (Provisional)". Census Commission of India. Archived from the original on 2004-06-16. Retrieved 2008-11-01. 
  4. ^ Cite error: The named reference GR7 was invoked but never defined (see the help page).
  5. ^ "American FactFinder". United States Census Bureau. Retrieved 2008-01-31. 
  6. ^ Cite error: The named reference GR3 was invoked but never defined (see the help page).
  7. ^ Cite error: The named reference GR4 was invoked but never defined (see the help page).
  8. ^ "NGA GEOnet Names Server". National Geospatial-Intelligence Agency. 2008-01-30. Retrieved 2008-01-31. 
  9. ^ "Find a County". National Association of Counties. Retrieved 2011-06-07. 
  10. ^ "American FactFinder". United States Census Bureau. Retrieved 2011-05-14. 
  11. ^ "Census of Population and Housing: Decennial Censuses". United States Census Bureau. Retrieved 2012-03-04.