Difference between revisions of "Template:GEOnet/doc"
imported>Zyxw (→Examples: update examples and table formatting) |
imported>Zyxw (update documentation, add TemplateData) |
||
| Line 2: | Line 2: | ||
<!-- 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. --> | ||
{{TOC right}} | {{TOC right}} | ||
| − | {{Tl|GEOnet}} provides an external link to a specific geographic feature name from the [[GEOnet Names Server]] (GNS), published by the [[National Geospatial-Intelligence Agency]] (NGA). | + | {{Tl|GEOnet}} provides an external link to a specific geographic feature name from the [[GEOnet Names Server]] (GNS), published by the [[National Geospatial-Intelligence Agency]] (NGA). This template uses the GEOnet [[Unique Feature Identifier]] (UFI). |
| − | + | <big>'''NOTE: The external links generated by this template no longer work. Please use {{Tl|GEOnet2}} (which requires a Name_GUID instead of a UFI) or {{Tl|GEOnet3}}.'''</big> | |
| − | |||
| − | |||
| − | |||
| − | <big>'''NOTE: The external links generated by this template no longer work. Please use {{Tl|GEOnet2}} | ||
== Usage == | == Usage == | ||
| − | <code>{{Tlx|GEOnet|''UFI''|'' | + | <code>{{Tlx|GEOnet|''UFI''|''Name''}}</code> |
| − | |||
| − | |||
| − | |||
| − | |||
== Parameters == | == Parameters == | ||
| − | + | {{TemplateDataHeader}} | |
| − | + | <templatedata>{ | |
| − | + | "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 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.", | |
| − | + | "params": { | |
| − | + | "1": { | |
| − | + | "label": "UFI", | |
| − | + | "description": "GEOnet Unique Feature Identifier (UFI), which is the value assigned to Feature__Unique_Feature_ID in the http://gnswww.nga.mil/geonames/Gazetteer/Search/Results.jsp URL.", | |
| − | + | "type": "number", | |
| − | + | "default": "", | |
| − | + | "required": true | |
| − | + | }, | |
| − | + | "2": { | |
| − | + | "label": "Name", | |
| − | + | "description": "Name or other descriptive text. If not given it defaults to the Wikipedia article name", | |
| − | + | "type": "string", | |
| − | + | "default": "{{PAGENAME}}", | |
| − | + | "required": false | |
| − | + | } | |
| − | </ | + | }}</templatedata> |
== Examples == | == Examples == | ||
| Line 50: | Line 42: | ||
| {{GEOnet|-2705195|Baku, Azerbaijan}} | | {{GEOnet|-2705195|Baku, Azerbaijan}} | ||
|} | |} | ||
| + | |||
| + | The examples shown above generate a link to: | ||
| + | * http://gnswww.nga.mil/geonames/Gazetteer/Search/Results.jsp?Feature__Unique_Feature_ID=-2705195&Diacritics=Yes&reload=1 | ||
== See also == | == See also == | ||
Revision as of 02:31, 30 May 2014
| This is a documentation subpage for Template:GEOnet. It contains usage information, categories and other content that is not part of the original template page. |
{{GEOnet}} provides an external link to a specific geographic feature name from the GEOnet Names Server (GNS), published by the National Geospatial-Intelligence Agency (NGA). This template uses the GEOnet Unique Feature Identifier (UFI).
NOTE: The external links generated by this template no longer work. Please use {{GEOnet2}} (which requires a Name_GUID instead of a UFI) or {{GEOnet3}}.
Usage
{{GEOnet|UFI|Name}}
Parameters
TemplateData for GEOnet
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| UFI | 1 | GEOnet Unique Feature Identifier (UFI), which is the value assigned to Feature__Unique_Feature_ID in the http://gnswww.nga.mil/geonames/Gazetteer/Search/Results.jsp URL.
| Number | required |
| Name | 2 | Name or other descriptive text. If not given it defaults to the Wikipedia article name
| String | optional |
Examples
| Code | Produces |
|---|---|
|
GEOnet/doc at GEOnet Names Server |
|
Baku, Azerbaijan at GEOnet Names Server |
The examples shown above generate a link to:
See also
Similar templates:
- {{GNIS}} and {{Cite GNIS}} – for links to U.S. geographic feature names from Geographic Names Information System (GNIS)
List of pages linking to gnswww.nga.mil:
External links