Difference between revisions of "Template:GEOnet3/doc"
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. | ||
| − | {{ | + | == 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
| This is a documentation subpage for Template:GEOnet3. It contains usage information, categories and other content that is not part of the original template page. |
{{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
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| UFI | 1 | GEOnet Unique Feature Identifier (UFI), which can be entered at http://geonames.nga.mil/namesgaz/ on the Advanced Search page.
| Number | required |
| Name | 2 | Name or other descriptive text. If not given it defaults to the Wikipedia article name
| String | optional |
Examples
| Code | Produces |
|---|---|
|
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". |
|
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:
- {{GNIS}} and {{Cite GNIS}} – for links to U.S. geographic feature names from Geographic Names Information System (GNIS)
External links