https://nordiclarp.org/w/index.php?title=Template:GNIS_2/doc&feed=atom&action=historyTemplate:GNIS 2/doc - Revision history2024-03-28T19:50:32ZRevision history for this page on the wikiMediaWiki 1.34.2https://nordiclarp.org/w/index.php?title=Template:GNIS_2/doc&diff=11244&oldid=prevJohannes Axner: 1 revision imported2019-01-01T14:39:58Z<p>1 revision imported</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">Revision as of 14:39, 1 January 2019</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Johannes Axnerhttps://nordiclarp.org/w/index.php?title=Template:GNIS_2/doc&diff=11243&oldid=preven>Elegie: Use HTTPS for the geonames.usgs.gov "Feature Search" link to provide increased user privacy/security (the HTTP URL generates a 301 (Moved Permanently) redirect to an HTTPS URL), use HTTPS for example geonames.usgs.gov URLs2017-04-08T07:16:13Z<p>Use HTTPS for the geonames.usgs.gov "Feature Search" link to provide increased user privacy/security (the HTTP URL generates a 301 (Moved Permanently) redirect to an HTTPS URL), use HTTPS for example geonames.usgs.gov URLs</p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --><br />
<br />
[[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 (&nbsp;[1]&nbsp;) or with an optionally specified name as the [[anchor text]].<br />
<br />
== Usage ==<br />
<br />
The only required parameter is the GNIS Feature ID number (optionally, this parameter can be named <code>id</code>).<br />
<br />
<nowiki>{{</nowiki>GNIS 2|''ID''}}<br />
<nowiki>{{</nowiki>GNIS 2|id=''ID''}}<br />
<br />
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 <code>name</code>):<br />
<br />
<nowiki>{{</nowiki>GNIS 2|''ID''|''Name''}}<br />
<nowiki>{{</nowiki>GNIS 2|id=''ID''|name=''Name''}}<br />
<br />
For GNIS features in Antarctica, add <code>|type=antarid</code>.<br />
<br />
<nowiki>{{</nowiki>GNIS 2|''ID''|type=antarid}}<br />
<nowiki>{{</nowiki>GNIS 2|id=''ID''|type=antarid}}<br />
<br />
<nowiki>{{</nowiki>GNIS 2|''ID''|''Name''|type=antarid}}<br />
<nowiki>{{</nowiki>GNIS 2|id=''ID''|name=''Name''|type=antarid}}<br />
<br />
== TemplateData ==<br />
<br />
{{TemplateDataHeader}}<br />
<templatedata>{<br />
"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.",<br />
"params": {<br />
"1": {<br />
"label": "ID",<br />
"aliases": ["id"],<br />
"description": "GNIS Feature ID, a number without leading zeros.",<br />
"type": "number",<br />
"default": "",<br />
"required": true<br />
},<br />
"2": {<br />
"label": "Name",<br />
"aliases": ["name"],<br />
"description": "GNIS Feature Name or other descriptive text.",<br />
"type": "string",<br />
"default": "",<br />
"required": false<br />
},<br />
"type": {<br />
"label": "Type",<br />
"description": "Use the value 'antarid' (type=antarid) for features in Antarctica.",<br />
"type": "string",<br />
"default": "",<br />
"required": false<br />
}<br />
}}</templatedata><br />
<br />
== Instructions ==<br />
<br />
# Go to the [https://geonames.usgs.gov/apex/f?p=gnispq GNIS Feature Search] page.<br />
# Search for the name, location, and/or class of the feature desired, e.g., to find a mountain called 'Mt. Foo', type '<code>mount foo</code>' in the Feature Name box and select 'Summit' from the Feature Class list.<br />
# Copy the 'ID' number for the desired feature and insert it into the <code><nowiki>{{</nowiki>GNIS 2|...}}</code> template.<br />
# The latitude and longitude can also be copied and used in the {{tlx|coord}} template, inserting the '{{para}}' vertical bar between degrees, minutes, seconds, and direction, e.g.: 441613N&nbsp;&nbsp;0711812W → <code><nowiki>{{</nowiki>coord|44|16|13|N|071|18|12|W|region:US}}</code><br />
<br />
== Examples ==<br />
<br />
=== ID only ===<br />
<br />
URL: https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:871352<br />
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 2 | 871352 }}</code><br />
** ''Result:'' {{GNIS 2 | 871352 }}<br />
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 2 |id= 871352 }}</code><br />
** ''Result:'' {{GNIS 2 |id= 871352 }}<br />
<br />
URL: https://geonames.usgs.gov/apex/f?p=gnispq:5:::NO::P5_ANTAR_ID:2828<br />
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 2 | 2828 |type= antarid }}</code><br />
** ''Result:'' {{GNIS 2 | 2828 |type= antarid }}<br />
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 2 |id= 2828 |type= antarid }}</code><br />
** ''Result:'' {{GNIS 2 |id= 2828 |type= antarid }}<br />
<br />
=== ID and Name ===<br />
<br />
URL: https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:871352<br />
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 2 | 871352 | Mount Washington }}</code><br />
** ''Result:'' {{GNIS 2 | 871352 | Mount Washington }}<br />
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 2 |id= 871352 |name= Mount Washington }}</code><br />
** ''Result:'' {{GNIS 2 |id= 871352 |name= Mount Washington }}<br />
<br />
URL: https://geonames.usgs.gov/apex/f?p=gnispq:5:::NO::P5_ANTAR_ID:2828<br />
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 2 | 2828 | Clarke Glacier |type= antarid }}</code><br />
** ''Result:'' {{GNIS 2 | 2828 | Clarke Glacier |type= antarid }}<br />
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 2 |id= 2828 |name= Clarke Glacier |type= antarid }}</code><br />
** ''Result:'' {{GNIS 2 |id= 2828 |name= Clarke Glacier |type= antarid }}<br />
<br />
== See also ==<br />
<br />
Other GNIS templates:<br />
* [[Template:GNIS]] – link with anchor text "U.S. Geological Survey Geographic Names Information System: ''Name''"<br />
* [[Template:GNIS 3]] – link as bare [[URL]] only, without anchor text<br />
* [[Template:GNIS 4]] – link with GNIS Feature ID number as the anchor text<br />
* [[Template:Cite GNIS]] – link using the {{tl|Cite web}} template, for use as a reference<br />
<br />
List of pages linking to [[Special:Linksearch/geonames.usgs.gov|geonames.usgs.gov]]:<br />
* [[Special:Linksearch/geonames.usgs.gov/apex/f?p=gnispq]] (current format)<br />
* [[Special:Linksearch/geonames.usgs.gov/pls/gnispublic/f?p=gnispq]] (old format)<br />
<br />
Similar templates:<br />
* [[Template:Mountain index row]] – includes an optional GNIS link<br />
* [[Template:Cite cgndb]] – for links to [[Canadian Geographical Names Data Base]]<br />
** [[Template:Cite bcgnis]] – for links to [[BC Geographical Names]] for British Columbia<br />
* [[Template:GPN]] – for links to Gazetteer of Planetary Nomenclature<br />
* [[Template:GEOnet2]] and [[Template:Cite GNS]] – for links to non-U.S. geographic feature names from [[GEOnet Names Server]]<br />
<br />
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||<br />
<!-- Categories go here, and interwikis go in Wikidata --><br />
[[Category:United States government external link templates]]<br />
}}</includeonly></div>en>Elegie