Difference between revisions of "Template:GNIS 2/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 +
{{Wikidata property|P590|P804}}
  
 
[[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]].
 
[[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]].
Line 57: Line 58:
 
== 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 2|...}}</code> template.
 
# Copy the 'ID' number for the desired feature and insert it into the <code><nowiki>{{</nowiki>GNIS 2|...}}</code> template.
Line 66: Line 67:
 
=== ID only ===
 
=== ID only ===
  
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 2 | 871352 }}</code>
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 2 | 871352 }}</code>
 
** ''Result:'' {{GNIS 2 | 871352 }}
 
** ''Result:'' {{GNIS 2 | 871352 }}
Line 72: Line 73:
 
** ''Result:'' {{GNIS 2 |id= 871352 }}
 
** ''Result:'' {{GNIS 2 |id= 871352 }}
  
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 2 | 2828 |type= antarid }}</code>
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 2 | 2828 |type= antarid }}</code>
 
** ''Result:'' {{GNIS 2 | 2828 |type= antarid }}
 
** ''Result:'' {{GNIS 2 | 2828 |type= antarid }}
Line 80: Line 81:
 
=== ID and Name ===
 
=== ID and Name ===
  
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 2 | 871352 | Mount Washington }}</code>
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 2 | 871352 | Mount Washington }}</code>
 
** ''Result:'' {{GNIS 2 | 871352 | Mount Washington }}
 
** ''Result:'' {{GNIS 2 | 871352 | Mount Washington }}
Line 86: Line 87:
 
** ''Result:'' {{GNIS 2 |id= 871352 |name= Mount Washington }}
 
** ''Result:'' {{GNIS 2 |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 2 | 2828 | Clarke Glacier |type= antarid }}</code>
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 2 | 2828 | Clarke Glacier |type= antarid }}</code>
 
** ''Result:'' {{GNIS 2 | 2828 | Clarke Glacier |type= antarid }}
 
** ''Result:'' {{GNIS 2 | 2828 | Clarke Glacier |type= antarid }}
Line 111: Line 112:
 
* [[Template:GEOnet2]] and [[Template:Cite GNS]] – for links to non-U.S. geographic feature names from [[GEOnet Names Server]]
 
* [[Template:GEOnet2]] and [[Template:Cite GNS]] – for links to non-U.S. geographic feature names from [[GEOnet Names Server]]
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{Sandbox other||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
<!-- Categories go here, and interwikis go in Wikidata -->
[[Category:U.S. Government external link templates]]
+
[[Category:United States government external link templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 15:29, 25 April 2020

Template:Wikidata property

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}}

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 2

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.

Template parameters

ParameterDescriptionTypeStatus
ID1 id

GNIS Feature ID, a number without leading zeros.

Default
Numberrequired
Name2 name

GNIS Feature Name or other descriptive text.

Default
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 2|...}} 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

ID only

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

  • Usage: {{GNIS 2 | 871352 }}
  • Usage: {{GNIS 2 |id= 871352 }}

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

  • Usage: {{GNIS 2 | 2828 |type= antarid }}
  • Usage: {{GNIS 2 |id= 2828 |type= antarid }}

ID and Name

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

  • Usage: {{GNIS 2 | 2828 | Clarke Glacier |type= antarid }}
  • Usage: {{GNIS 2 |id= 2828 |name= Clarke Glacier |type= antarid }}

See also

Other GNIS templates:

List of pages linking to geonames.usgs.gov:

Similar templates: