Open main menu

Changes

create documentation and categories based on Template:GEOnet/doc
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{TOC right}}
{{Tl|GEOnet3}} generates an external link to a search page for the [[GEOnet Names Server]] (GNS), published by the [[National Geospatial-Intelligence Agency]] (NGA). It includes the GEOnet [[Unique Feature Identifier]] (UFI) in search instructions which are displayed with the link. This template can be used as a replacement for {{Tl|GEOnet}}, which generates a direct link that no longer works.

== Usage ==
<code>{{Tlx|GEOnet3|''UFI''|''Name''}}</code>

== TemplateData ==
{{TemplateDataHeader}}
<templatedata>{
"description": "This template generates an external link to a search page for the GEOnet Names Server (GNS), published by the National Geospatial-Intelligence Agency (NGA). It includes the GEOnet Unique Feature Identifier (UFI) in search instructions which are displayed with the link.",
"params": {
"1": {
"label": "UFI",
"description": "GEOnet Unique Feature Identifier (UFI), which can be entered at http://geonames.nga.mil/namesgaz/ on the Advanced Search page.",
"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 ==
{| class="wikitable"
|+ {{Tl|GEOnet3}} examples
! Code
! Produces
|-
| <code>{{Tlx|GEOnet3|-2705195}}</code>
| {{GEOnet3|-2705195}}
|-
| {{nowrap|<code>{{Tlx|GEOnet3|-2705195|Baku, Azerbaijan}}</code>}}
| {{GEOnet3|-2705195|Baku, Azerbaijan}}
|}

The examples shown above generate an external link to:
* http://geonames.nga.mil/namesgaz/

== See also ==
{{Special:PrefixIndex/Template:GEOnet}}

Similar templates:
* {{tl|GNIS}} and {{tl|Cite GNIS}} – for links to U.S. geographic feature names from [[Geographic Names Information System]] (GNIS)

== External links ==
* [http://earth-info.nga.mil/gns/html/index.html NGA GEOnet Names Server (GNS)]
** [http://geonames.nga.mil/namesgaz/ GNS Search - Text Based Page]
** [http://geonames.nga.mil/namesviewer GNS Search - Open Geospatial Consortium (OGC) Viewer Page]

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here, and interwikis go in Wikidata -->
[[Category:United States government attribution templates]]
[[Category:United States military templates|Navy, USGovernment]]
}}</includeonly>
Anonymous user