Template:GNIS/doc

These are templates that generate external links to the United States Geological Survey's Geographic Names Information System.

Template:GNIS
Template:GNIS generates an external link to a GNIS page. The only required parameter is the GNIS Feature ID number (optionally, this parameter can be named ) and the template then uses the article title as the anchor text:

To have the link text be other than the article name, use a second parameter (optionally, this can be named ):

This can be used when the Wikipedia page name contains disambiguation brackets; for example, at the page: Mount Washington (New Hampshire), use {{nowrap| {{ }} to have "{{GNIS|871352| Mount Washington}}" rather than "{{GNIS|871352| Mount Washington (New Hampshire)}}". This is also necessary should you need to add a link to an article about somebody or something other than the linked feature.

Antarctica
For GNIS pages in Antarctica, use the  parameter and the corresponding Antarctic GNIS ID:

Template:GNIS 2
generates a footnote-type link. The only required parameter is the GNIS Feature ID number (optionally, this parameter can be named ):

If desired, the template can display the feature name as the anchor text, which must be specified in a second unnamed parameter (optionally, this can be named ):

Examples:

Results:

Antarctica
For GNIS pages in Antarctica, use the  parameter and the corresponding Antarctic GNIS ID.

Examples:

Results:

Template:GNIS 3
generates a bare URL. The only required parameter is the GNIS Feature ID number:

Example:

Result:

Antarctica
For GNIS pages in Antarctica, use the  parameter and the corresponding Antarctic GNIS ID.

Example:

Result:

Use in a template
Result:

Template:GNIS 4
generates an external link which displays the GNIS Feature ID number. The only required parameter is ID number (optionally, this parameter can be named ):

Example:

Result:

Antarctica
For GNIS pages in Antarctica, use the  parameter and the corresponding Antarctic GNIS ID.

Example:

Result:

Instructions

 * 1) Go to http://geonames.usgs.gov/pls/gnispublic/
 * 2) Search for the name, location, and / or type of the feature desired, e.g., to find a mountain called 'Mt. Foo', put ' ' in the Feature Name and select 'Summit' for the Feature Class.
 * 3) Copy the 'ID' and insert it into:
 * 4) * {{ or {{
 * 5) You can also copy the latitude and longitude and use them in the {{tlx|coord}} template, inserting the '{{para}}' vertical bar in-between, e.g.: 44_16_13_N  071_18_12_W →