Template:GR/doc

From Wikipedia, the free encyclopedia

The template {{GR}} is used on a very large number of Wikipedia articles to provide citations for Geographic references, mainly for locations in North America.

[edit] Usage

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

  1. US Gazetteer files: 2000 and 1990. United States Census Bureau (2005-05-03). Retrieved on 2008-01-31.
  2. American FactFinder. United States Census Bureau. Retrieved on 2008-01-31.
  3. US Board on Geographic Names. United States Geological Survey (2007-10-25). Retrieved on 2008-01-31.
  4. Geographic Names Information System. United States Geological Survey. Retrieved on 2008-01-31.
  5. NGA GEOnet Names Server. National Geospatial-Intelligence Agency (2008-01-30). Retrieved on 2008-01-31.
  6. Find a County. National Association of Counties. Retrieved on 2008-01-31.

To use one of these citations, pass the number of the reference to the template as a parameter: {{GR|1}} produces the first citation, {{GR|4}} produces the fourth one, and so forth. To use the Indian reference, pass the name "India" to the template: {{GR|india}}, producing:

  1. Census of India 2001: Data from the 2001 Census, including cities, villages and towns. (Provisional). Census Commission of India. Retrieved on 2007-09-03.

{{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 ommitted by adding an "r" before the reference number. So while {{GR|1}} produces [1], a properly-formatted citation, {{GR|r1}} outputs "US Gazetteer files: 2000 and 1990. United States Census Bureau (2005-05-03). Retrieved on 2008-01-31.", the complete citation inline. Note that this option is not available with the Indian reference: typing {{GR|rIndia}} simply produces an error, and {{GR|India}} does not include the <ref> tags.

[edit] 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.{{GR|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.<ref>{{GR|r2}}</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>{{GR|india}}</ref> Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor.<ref>{{GR|3}}</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.{{GR|r4}} Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat.<ref>{{GR|rIndia}}</ref> Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi.{{GR|india}} Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci.{{GR|7}} 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.[4] 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 on 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.[5] Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi.Census of India 2001: Data from the 2001 Census, including cities, villages and towns. (Provisional). Census Commission of India. Retrieved on 2007-09-03. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci.[6] In hac habitasse platea dictumst.[7]

[edit] References produced

  1. ^ a b US Gazetteer files: 2000 and 1990. United States Census Bureau (2005-05-03). Retrieved on 2008-01-31.
  2. ^ American FactFinder. United States Census Bureau. Retrieved on 2008-01-31.
  3. ^ Census of India 2001: Data from the 2001 Census, including cities, villages and towns. (Provisional). Census Commission of India. Retrieved on 2007-09-03.
  4. ^ <ref>{{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>
  5. ^ <ref><font color=red>'''[[Template:GR|GR]] Error'''</font></ref>
  6. ^ GR Error
  7. ^ GR Error