Template:Cite gnis2/doc

cite gnis2 generates a CS2 citation with a link to a Feature Detail Report from the Geographic Names Information System (GNIS), published by the United States Geological Survey (USGS). The citation is displayed as

where Place name is either the Wikipedia article name or an optionally specified name.

The CS2 citation includes a harvid anchor with format "Place_name_USGS".

Usage
The citation may be placed in the article text with code like:

It may also be placed in a list of sources near the foot of the article, and referenced from the article text by code like:

Note that the Harvard ref is automatically generated by the template, with an anchor "Name USGS". If a different anchor name is desired, it can be set via

The only required parameter is the GNIS Feature ID number (optionally, this parameter can be named ). The template then uses the Wikipedia article name as part of the anchor text.

If desired, a feature name other than the article name can be specified in a second unnamed parameter (optionally, this can be named ). This can be used if the article name contains disambiguation or when the GNIS feature name is different than the article name.

For GNIS features in Antarctica, add.

For feature types retired in 2021, add.

To format the citation using CS1 style, rather than the default CS2 style, specify

TemplateData
{	"description": "This template generates an external link to a Feature Detail Report from the Geographic Names Information System (GNIS), published by the United States Geological Survey (USGS). The link is displayed as 'U.S. Geological Survey Geographic Names Information System: Name', where Name is either the Wikipedia article name or an optionally specified name.", "params": { "1": {			"label": "ID", "aliases": [ "id" ],			"description": "GNIS Feature ID, a number without leading zeros.", "type": "number", "required": true },		"2": {			"label": "Name", "aliases": [ "name" ],			"description": "GNIS Feature Name or other descriptive text. If not given it defaults to the Wikipedia article name", "type": "string", "default": "", "required": false },		"mode": { "label": "Mode", "description": "Use the value 'cs1' (mode=cs1) to override the default cs2 format.", "type": "string", "default": "cs2", "required": false },		"type": { "label": "Type", "description": "Use the value 'antarid' for features in Antarctica. Use 'retired' for types retired in 2021.", "type": "string", "required": false },		"ref": { "label": "Ref", "description": "Use ref= to provide a target for an short footnote .", "type": "string", "default": "", "required": false} } }

Instructions

 * 1) Go to the GNIS Feature Search page.
 * 2) Search for the name, location, and/or class of the feature desired, e.g., to find a mountain called 'Mt. Foo', type ' ' in the Feature Name box and select 'Summit' from the Feature Class list.
 * 3) Copy the id number for the desired feature (above its name) and insert it into the   template.
 * 4) The latitude and longitude can also be copied and used in the  template, inserting the 'undefined' vertical bar between degrees, minutes, seconds, and direction, e.g.: 441613N  0711812W →
 * 5) But note that latitude, longitude and elevation may be somewhat inaccurate. It is best to confirm this data by viewing the location on a map. If necessary use more reliable sources.

Long footnote style
Result

Your text.

Long footnote style; CS1
Result

Your text.

Short footnote + sources style
Result:

Your text.



All parameters
Result: