Difference between revisions of "Template:GEOnet3/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mr. Stradivarius
(create with {{no documentation}})
 
imported>Zyxw
(create documentation and categories based on Template:GEOnet/doc)
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. -->
 +
{{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.
  
{{no documentation}}
+
== 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||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
+
<!-- Categories go here, and interwikis go in Wikidata -->
 
+
[[Category:United States government attribution templates]]
 +
[[Category:United States military templates|Navy, USGovernment]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 03:25, 30 May 2014

{{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 {{GEOnet}}, which generates a direct link that no longer works.

Usage

{{GEOnet3|UFI|Name}}

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 GEOnet3

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.

Template parameters

ParameterDescriptionTypeStatus
UFI1

GEOnet Unique Feature Identifier (UFI), which can be entered at http://geonames.nga.mil/namesgaz/ on the Advanced Search page.

Default
Numberrequired
Name2

Name or other descriptive text. If not given it defaults to the Wikipedia article name

Default
{{PAGENAME}}
Stringoptional

Examples

{{GEOnet3}} examples
Code Produces
{{GEOnet3|-2705195}} GEOnet3/doc can be found at GEOnet Names Server, at this link, by opening the Advanced Search box, entering "-2705195" in the "Unique Feature Id" form, and clicking on "Search Database".
{{GEOnet3|-2705195|Baku, Azerbaijan}} Baku, Azerbaijan can be found at GEOnet Names Server, at this link, by opening the Advanced Search box, entering "-2705195" in the "Unique Feature Id" form, and clicking on "Search Database".

The examples shown above generate an external link to:

See also

Similar templates:

External links