Template:GR/doc

This template or its shortcut  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 eight different references that can be created by for references in North America, and one that is used by locations in India. The eight possible North American citations are as follows:

















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



can be used either inside or outside &lt;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  produces, a properly-formatted citation,   outputs "", the complete citation inline. Note that this option is not available with the Indian reference:  does not include the   tags, and typing   simply produces an error.

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. 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.
 * Output:

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. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. 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. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst.

Parameters
1  2   3   4   5   6   7   8   r1   r2   r3   r4   r5   r6   r7   r8