Template:GNIS/doc

Template:GNIS 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.

Usage
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 GNIS types types of features retired in 2021, add.

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", "default": "", "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 }, "type": { "label": "Type", "description": "Use the value 'antarid' for features in Antarctica. Use the value 'retired' for feature types retired in 2021.", "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 →

Examples
URL:
 * Usage:
 * Result:
 * Usage:
 * Result:

URL:
 * Usage:
 * Result:
 * Usage:
 * Result:

URL:
 * Usage:
 * Result:
 * Usage:
 * Result:

Retired data
In October 2021, USGS announced that several classes of data had been removed from their searchable database:  The following feature classes will be archived: Airport, Bridge, Building, Cemetery, Church, Dam, Forest, Harbor, Hospital, Mine, Oilfield, Park, Post Office, Reserve, School, Tower, Trail, Tunnel, and Well. 

If you encounter articles with GNIS links that return the error "The ID does not exist", they were probably for records in one of these classes. In this case, specify retired, and a link will be generated to a KnowWhereGraph linked open data listing for the GNIS feature that reflects any ad hoc edits made to the feature since retirement.