Difference between revisions of "Template:GNIS/doc"

From blackwiki
Jump to navigation Jump to search
imported>Good Olfactory
imported>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 URLs)
Line 57: Line 57:
 
== Instructions ==
 
== Instructions ==
  
# Go to the [http://geonames.usgs.gov/apex/f?p=gnispq GNIS Feature Search] page.
+
# Go to the [https://geonames.usgs.gov/apex/f?p=gnispq 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 '<code>mount foo</code>' in the Feature Name box and select 'Summit' from the Feature Class list.
 
# 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.
 
# Copy the 'ID' number for the desired feature and insert it into the <code><nowiki>{{</nowiki>GNIS|...}}</code> template.
 
# Copy the 'ID' number for the desired feature and insert it into the <code><nowiki>{{</nowiki>GNIS|...}}</code> template.
Line 64: Line 64:
 
== Examples ==
 
== Examples ==
  
URL: http://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:871352
+
URL: https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:871352
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS | 871352 | Mount Washington }}</code>
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS | 871352 | Mount Washington }}</code>
 
** ''Result:'' {{GNIS | 871352 | Mount Washington }}
 
** ''Result:'' {{GNIS | 871352 | Mount Washington }}
Line 70: Line 70:
 
** ''Result:'' {{GNIS |id= 871352 |name= Mount Washington }}
 
** ''Result:'' {{GNIS |id= 871352 |name= Mount Washington }}
  
URL: http://geonames.usgs.gov/apex/f?p=gnispq:5:::NO::P5_ANTAR_ID:2828
+
URL: https://geonames.usgs.gov/apex/f?p=gnispq:5:::NO::P5_ANTAR_ID:2828
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS | 2828 | Clarke Glacier |type= antarid }}</code>
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS | 2828 | Clarke Glacier |type= antarid }}</code>
 
** ''Result:'' {{GNIS | 2828 | Clarke Glacier |type= antarid }}
 
** ''Result:'' {{GNIS | 2828 | Clarke Glacier |type= antarid }}

Revision as of 08:54, 9 April 2017

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 ({{PAGENAME}}) or an optionally specified name.

Usage

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

{{GNIS|ID}}
{{GNIS|id=ID}}

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

{{GNIS|ID|Name}}
{{GNIS|id=ID|name=Name}}

For GNIS features in Antarctica, add |type=antarid.

{{GNIS|ID|type=antarid}}
{{GNIS|id=ID|type=antarid}}
{{GNIS|ID|Name|type=antarid}}
{{GNIS|id=ID|name=Name|type=antarid}}

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for GNIS

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 ({{PAGENAME}}) or an optionally specified name.

Template parameters

ParameterDescriptionTypeStatus
ID1 id

GNIS Feature ID, a number without leading zeros.

Default
Numberrequired
Name2 name

GNIS Feature Name or other descriptive text. If not given it defaults to the Wikipedia article name

Default
{{PAGENAME}}
Stringoptional
Typetype

Use the value 'antarid' (type=antarid) for features in Antarctica.

Default
Stringoptional

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 'mount foo' in the Feature Name box and select 'Summit' from the Feature Class list.
  3. Copy the 'ID' number for the desired feature and insert it into the {{GNIS|...}} template.
  4. 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

URL: https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:871352

URL: https://geonames.usgs.gov/apex/f?p=gnispq:5:::NO::P5_ANTAR_ID:2828

See also

Other GNIS templates:

List of pages linking to geonames.usgs.gov:

Similar templates: