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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
imported>Zyxw
(minor updates)
Line 5: Line 5:
  
 
== Usage ==
 
== Usage ==
 +
 
The only required parameter is the GNIS Feature ID number (optionally, this parameter can be named <code>id</code>).
 
The only required parameter is the GNIS Feature ID number (optionally, this parameter can be named <code>id</code>).
  
Line 10: Line 11:
 
  <nowiki>{{</nowiki>GNIS 4|id=''ID''}}
 
  <nowiki>{{</nowiki>GNIS 4|id=''ID''}}
  
For GNIS pages in Antarctica, use the <code>type=antarid</code> parameter and the corresponding Antarctic GNIS Feature ID number.
+
For GNIS features in Antarctica, add <code>|type=antarid</code>.
  
 
  <nowiki>{{</nowiki>GNIS 4|''ID''|type=antarid}}
 
  <nowiki>{{</nowiki>GNIS 4|''ID''|type=antarid}}
Line 16: Line 17:
  
 
== TemplateData ==
 
== TemplateData ==
 +
 
{{TemplateDataHeader}}
 
{{TemplateDataHeader}}
 
<templatedata>{
 
<templatedata>{
Line 38: Line 40:
  
 
== Instructions ==
 
== Instructions ==
 +
 
# Go to the [http://geonames.usgs.gov/apex/f?p=gnispq GNIS Feature Search] page.
 
# Go to the [http://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 4|...}}</code> template.
 
# Copy the 'ID' number for the desired feature and insert it into the <code><nowiki>{{</nowiki>GNIS 4|...}}</code> template.
# The latitude and longitude can also be copied and used in the {{tlx|coord}} template, inserting the '{{para}}' vertical bar in-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>
+
# 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>
  
 
== Examples ==
 
== Examples ==
Line 47: Line 50:
 
URL: http://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:871352
 
URL: http://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:871352
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 4 | 871352 }}</code>
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 4 | 871352 }}</code>
** ''Output:'' {{GNIS 4 | 871352 }}
+
** ''Result:'' {{GNIS 4 | 871352 }}
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 4 |id= 871352 }}</code>
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 4 |id= 871352 }}</code>
** ''Output:'' {{GNIS 4 |id= 871352 }}
+
** ''Result:'' {{GNIS 4 |id= 871352 }}
  
 
URL: http://geonames.usgs.gov/apex/f?p=gnispq:5:::NO::P5_ANTAR_ID:2828
 
URL: http://geonames.usgs.gov/apex/f?p=gnispq:5:::NO::P5_ANTAR_ID:2828
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 4 | 2828 |type= antarid }}</code>
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 4 | 2828 |type= antarid }}</code>
** ''Output:'' {{GNIS 4 | 2828 |type= antarid }}
+
** ''Result:'' {{GNIS 4 | 2828 |type= antarid }}
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 4 |id= 2828 |type= antarid }}</code>
 
* ''Usage:'' <code><nowiki>{{</nowiki>GNIS 4 |id= 2828 |type= antarid }}</code>
** ''Output:'' {{GNIS 4 |id= 2828 |type= antarid }}
+
** ''Result:'' {{GNIS 4 |id= 2828 |type= antarid }}
  
 
== See also ==
 
== See also ==
 +
 
Other GNIS templates:
 
Other GNIS templates:
 
* [[Template:GNIS]] – link with anchor text "U.S. Geological Survey Geographic Names Information System: ''Name''"
 
* [[Template:GNIS]] – link with anchor text "U.S. Geological Survey Geographic Names Information System: ''Name''"
* [[Template:GNIS 2]] – link with anchor text "[1]" or "''Name''"
+
* [[Template:GNIS 2]] – link with anchor text "[1]" or "''Name''"
* [[Template:GNIS 3]] – link as [[URL]] only (no anchor text)
+
* [[Template:GNIS 3]] – link as bare [[URL]] only, without anchor text
* [[Template:Cite GNIS]] – link using {{tl|Cite web}} for use as a reference
+
* [[Template:Cite GNIS]] – link using the {{tl|Cite web}} template, for use as a reference
  
 
List of pages linking to [[Special:Linksearch/geonames.usgs.gov|geonames.usgs.gov]]:
 
List of pages linking to [[Special:Linksearch/geonames.usgs.gov|geonames.usgs.gov]]:

Revision as of 19:28, 9 May 2014

Template:GNIS 4 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 anchor text displayed for this external link is the GNIS Feature ID number.

Usage

The only required parameter is the GNIS Feature ID number (optionally, this parameter can be named id).

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

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

{{GNIS 4|ID|type=antarid}}
{{GNIS 4|id=ID|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 4

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 anchor text displayed for this external link is the GNIS Feature ID number.

Template parameters

ParameterDescriptionTypeStatus
ID1 id

GNIS Feature ID, a number without leading zeros.

Default
Numberrequired
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 4|...}} 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: http://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:871352

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

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

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

See also

Other GNIS templates:

List of pages linking to geonames.usgs.gov:

Similar templates: