قالب:GR/doc

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.

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 2008-01-31. {{cite web}}: Check date values in: |date= (help)
  2. "American FactFinder". United States Census Bureau. Retrieved 2008-01-31.
  3. "US Board on Geographic Names". United States Geological Survey. 2007-10-25. Retrieved 2008-01-31. {{cite web}}: Check date values in: |date= (help)
  4. "Geographic Names Information System". United States Geological Survey. Retrieved 2008-01-31.
  5. "NGA GEOnet Names Server". National Geospatial-Intelligence Agency. 2008-01-30. Retrieved 2008-01-31. {{cite web}}: Check date values in: |date= (help)
  6. "Find a County". National Association of Counties. Retrieved 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 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 2008-01-31. {{cite web}}: Check date values in: |date= (help)", 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.

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 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 2007-09-03. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci.[6] In hac habitasse platea dictumst.[7]

References produced

  1. ^ أ ب "US Gazetteer files: 2000 and 1990". United States Census Bureau. 2005-05-03. Retrieved 2008-01-31. {{cite web}}: Check date values in: |date= (help)
  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. Retrieved 2007-09-03.
  4. ^
  5. ^
  6. ^ GR Error
  7. ^ GR Error

خطأ استشهاد: علامة <ref> بالاسم " GR3 " المحددة في <references> لها سمة المجموعة " " والتي لا تظهر في النص السابق.
خطأ استشهاد: الوسم <ref> المعرف في <references> ليس له خاصة اسم.