Template:GNIS URL/sandbox
https://edits.nationalmap.gov/apps/gaz-domestic/public/search/names/
This is the template sandbox page for Template:GNIS URL (diff). See also the companion subpage for test cases. |
This template is used on approximately 91,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Generate the URL for a GNIS query
Usage
[edit]The only required parameter is the GNIS Feature ID number (optionally, this parameter can be named id
).
{{GNIS URL|ID}} {{GNIS URL|id=ID}}
For GNIS features in Antarctica, add |type=antarid
.
{{GNIS URL|ID|type=antarid}} {{GNIS URL|id=ID|type=antarid}}
For types of features retired from GNIS in 2021, add |type=retired
.
{{GNIS URL|ID|type=retired}} {{GNIS URL|id=ID|type=retired}}
TemplateData
[edit]TemplateData for GNIS URL
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | 1 id | GNIS Feature ID, a number without leading zeros.
| Number | required |
Type | type | Use the value 'antarid' for features in Antarctica. Use the value 'retired' for features retired in 2021
| String | optional |