Template:GNIS 2/doc
This is a documentation subpage for Template:GNIS 2. It may contain usage information, categories and other content that is not part of the original template page. |
Template:GNIS 2 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 external link is displayed as a footnote style link ( [1] ) or with an optionally specified name as the anchor text.
Usage
The only required parameter is the GNIS Feature ID number (optionally, this parameter can be named id
).
{{GNIS 2|ID}} {{GNIS 2|id=ID}}
If desired, the template can display the feature name as the anchor text, which can be specified in a second unnamed parameter (optionally, this parameter name can be named name
):
{{GNIS 2|ID|Name}} {{GNIS 2|id=ID|name=Name}}
For GNIS features in Antarctica, add |type=antarid
.
{{GNIS 2|ID|type=antarid}} {{GNIS 2|id=ID|type=antarid}}
{{GNIS 2|ID|Name|type=antarid}} {{GNIS 2|id=ID|name=Name|type=antarid}}
For [[Template:GNIS/doc#Retired data|features types that were retired in 2021], add |type=retired
.
{{GNIS 2|ID|type=retired}} {{GNIS 2|id=ID|type=retired}}
{{GNIS 2|ID|Name|type=retired}} {{GNIS 2|id=ID|name=Name|type=retired}}
TemplateData
TemplateData for GNIS 2
<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 external link is displayed as a footnote style link ( [1] ) or with an optionally specified name as the anchor text.", "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.", "type": "string", "default": "", "required": false }, "type": { "label": "Type", "description": "Use the value 'antarid' for features in Antarctica. Use 'retired' for features types retired in 2021.", "type": "string", "default": "", "required": false }
}}</templatedata>
Instructions
- Go to the GNIS Feature Search page.
- Search for the name, location, and/or class of the feature desired, e.g., to find a mountain called 'Mt. Foo', type '
mount foo
' in the Feature Name box and select 'Summit' from the Feature Class list. - Copy the id number above the feature type for the desired feature and insert it into the
{{GNIS 2|...}}
template. - The latitude and longitude can also be copied and used in the
{{coord}}
template, inserting the '|
' vertical bar between degrees, minutes, seconds, and direction, e.g.: 441613N 0711812W →{{coord|44|16|13|N|071|18|12|W|region:US}}
Examples
ID only
URL: https://edits.nationalmap.gov/apps/gaz-domestic/public/summary/871352
URL: https://web.archive.org/web/2020/https://geonames.usgs.gov/apex/f?p=gnispq:5:::NO::P5_ANTAR_ID:2828
- Usage:
{{GNIS 2 | 2828 |type= antarid }}
- Result: [3]
- Usage:
{{GNIS 2 |id= 2828 |type= antarid }}
- Result: [4]
URL: https://web.archive.org/web/2020/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:235365
- Usage:
{{GNIS 2 | 235365 |type= retired}}
- Result: [5]
- Usage:
{{GNIS 2 |id= 235365 |type= retired }}
- Result: [6]
ID and Name
URL: https://edits.nationalmap.gov/apps/gaz-domestic/public/summary/871352
- Usage:
{{GNIS 2 | 871352 | Mount Washington }}
- Result: Mount Washington
- Usage:
{{GNIS 2 |id= 871352 |name= Mount Washington }}
- Result: Mount Washington
URL: https://web.archive.org/web/2020/https://geonames.usgs.gov/apex/f?p=gnispq:5:::NO::P5_ANTAR_ID:2828
- Usage:
{{GNIS 2 | 2828 | Clarke Glacier |type= antarid }}
- Result: Clarke Glacier
- Usage:
{{GNIS 2 |id= 2828 |name= Clarke Glacier |type= antarid }}
- Result: Clarke Glacier
URL: https://web.archive.org/web/2020/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:235365
- Usage:
{{GNIS 2 | 235365 | Stanford University | type= retired}}
- Result: Stanford University
- Usage:
{{GNIS 2 |id= 235365 | name=Stanford University |type= retired }}
- Result: Stanford University
See also
Other GNIS templates:
- Template:GNIS – link with anchor text "U.S. Geological Survey Geographic Names Information System: Name"
- Template:GNIS URL – link as bare URL only, without anchor text
- Template:GNIS 4 – link with GNIS Feature ID number as the anchor text
- Template:Cite GNIS – link using the {{Cite web}} template, for use as a reference
Similar templates:
- Template:Cite cgndb – for links to Canadian Geographical Names Data Base
- Template:Cite bcgnis – for links to BC Geographical Names for British Columbia
- Template:GEOnet2 and Template:Cite GNS – for links to non-U.S. geographic feature names from GEOnet Names Server