Template:Cite gns/doc: Difference between revisions
tidy style |
Add sort key. |
||
(7 intermediate revisions by 6 users not shown) | |||
Line 15: | Line 15: | ||
| id = |
| id = |
||
| name = |
| name = |
||
| accessdate = |
|||
}}</pre> |
}}</pre> |
||
| style="vertical-align:top; padding:1ex;" |<pre style="margin:0; padding:0; border-color:transparent"> |
| style="vertical-align:top; padding:1ex;" |<pre style="margin:0; padding:0; border-color:transparent"> |
||
Line 21: | Line 20: | ||
Alphanumeric value described below |
Alphanumeric value described below |
||
"Name (Reading Order)" from search results |
"Name (Reading Order)" from search results |
||
Full date |
|||
</pre> |
</pre> |
||
|} |
|} |
||
The fields |
* The fields {{para|id}} and {{para|name}} must be specified. |
||
* The template accepts all parameters accepted by {{tl|cite web}}, e.g., {{para|access-date}}. |
|||
* Some parameters are aliases for {{tl|cite web}} parameters. Either can be used: |
|||
** {{para|name}} → {{para|title}} |
|||
** {{para|entry-date}} → {{para|date}} |
|||
== Finding the ID == |
== Finding the ID == |
||
A search engine can be found [http://geonames.nga.mil/namesgaz/ here]. Select a country name to reduce the number of matches. Finding the required < |
A search engine can be found [http://geonames.nga.mil/namesgaz/ here]. Select a country name to reduce the number of matches. Finding the required <kbd>id</kbd> is browser specific.<ref>These instructions were valid, using the latest browser version, at the time this documentation was written. Tests were only done using the Windows versions. If you have a problem leave a note on the [[Template talk:Cite gns/doc|discussion page]] or try the [[Wikipedia:Help desk|Help desk]].</ref> |
||
* [[Google Chrome|Chrome]] – Left click on the name then right click anywhere on pop-up. Select "Open frame in new tap". A [[URL]] without a protocol will be displayed in the Omnibox at the top of the screen. |
* [[Google Chrome|Chrome]] – Left click on the name then right click anywhere on pop-up. Select "Open frame in new tap". A [[URL]] without a protocol will be displayed in the Omnibox at the top of the screen. |
||
* [[Firefox]] – While pressing the [[control key]], left click on the name. A new tab will be created with a [[JavaScript]] function in the URL box. |
* [[Firefox]] – While pressing the [[control key]], left click on the name. A new tab will be created with a [[JavaScript]] function in the URL box. |
||
Line 35: | Line 37: | ||
* [[Safari (web browser)|Safari]] – Right click on the name and select "Copy Link". Paste location into a text box (right click and select Paste). |
* [[Safari (web browser)|Safari]] – Right click on the name and select "Copy Link". Paste location into a text box (right click and select Paste). |
||
The Javascript or URL for [[Mount Logan]] contain the string "('32FA8842BEDB3774E0440003BA962ED3', 'DC')" the < |
The Javascript or URL for [[Mount Logan]] contain the string "('32FA8842BEDB3774E0440003BA962ED3', 'DC')" the <kbd>id</kbd> is the [[alphanumeric]] value between the single quotes. For example, the <kbd>id</kbd> for Mount Logan is 32FA8842BEDB3774E0440003BA962ED3. |
||
=== Note === |
=== Note === |
||
Line 42: | Line 44: | ||
== Examples == |
== Examples == |
||
;with named parameters: |
;with named parameters: |
||
< |
<kbd><nowiki>{{cite gns |id=32FA8842BEDB3774E0440003BA962ED3 |name=Mount Logan}}</nowiki></kbd> → {{cite gns |id=32FA8842BEDB3774E0440003BA962ED3 |name=Mount Logan}} |
||
;with unnamed parameters: |
;with unnamed parameters: |
||
< |
<kbd><nowiki>{{cite gns |32FA8842BEDB3774E0440003BA962ED3 |Mount Logan |2011-05-22}}</nowiki></kbd> → {{cite gns |32FA8842BEDB3774E0440003BA962ED3 |Mount Logan |2011-05-22}} |
||
== See also == |
== See also == |
||
Line 62: | Line 64: | ||
** [http://geonames.nga.mil/namesviewer GNS Search - Open Geospatial Consortium (OGC) Viewer Page] |
** [http://geonames.nga.mil/namesviewer GNS Search - Open Geospatial Consortium (OGC) Viewer Page] |
||
<includeonly>{{ |
<includeonly>{{Sandbox other|| |
||
<!-- Categories go here, and interwikis go in Wikidata --> |
<!-- Categories go here, and interwikis go in Wikidata --> |
||
[[Category:United States government external link templates]] |
[[Category:United States government external link templates]] |
||
[[Category:Specific-source templates]] |
[[Category:Specific-source templates|gns]] |
||
}}</includeonly> |
}}</includeonly> |
Latest revision as of 22:52, 24 September 2021
This is a documentation subpage for Template:Cite gns. It may contain usage information, categories and other content that is not part of the original template page. |
This external link template can be used to cite a specific geographic feature name from the GEOnet Names Server (GNS), published by the National Geospatial-Intelligence Agency (NGA).
Usage
Parameter | Notes |
---|---|
{{cite gns | id = | name = }} |
Alphanumeric value described below "Name (Reading Order)" from search results |
- The fields
|id=
and|name=
must be specified. - The template accepts all parameters accepted by {{cite web}}, e.g.,
|access-date=
. - Some parameters are aliases for {{cite web}} parameters. Either can be used:
|name=
→|title=
|entry-date=
→|date=
Finding the ID
A search engine can be found here. Select a country name to reduce the number of matches. Finding the required id is browser specific.[1]
- Chrome – Left click on the name then right click anywhere on pop-up. Select "Open frame in new tap". A URL without a protocol will be displayed in the Omnibox at the top of the screen.
- Firefox – While pressing the control key, left click on the name. A new tab will be created with a JavaScript function in the URL box.
- Internet Explorer – Right click on the name and select "Properties". A Javascript function, identified as the URL, will be displayed in the pop-up.
- Opera – Right click on the name and select "Open in New Tab". A new tab will be created with A Javascript function in the URL box.
- Safari – Right click on the name and select "Copy Link". Paste location into a text box (right click and select Paste).
The Javascript or URL for Mount Logan contain the string "('32FA8842BEDB3774E0440003BA962ED3', 'DC')" the id is the alphanumeric value between the single quotes. For example, the id for Mount Logan is 32FA8842BEDB3774E0440003BA962ED3.
Note
- ^ These instructions were valid, using the latest browser version, at the time this documentation was written. Tests were only done using the Windows versions. If you have a problem leave a note on the discussion page or try the Help desk.
Examples
- with named parameters
{{cite gns |id=32FA8842BEDB3774E0440003BA962ED3 |name=Mount Logan}} → "Mount Logan". GEOnet Names Server.
- with unnamed parameters
{{cite gns |32FA8842BEDB3774E0440003BA962ED3 |Mount Logan |2011-05-22}} → "Mount Logan". GEOnet Names Server. Retrieved 2011-05-22.
See also
Similar templates:
- {{GEOnet2}} – for same link in different format
- {{GNIS}} and {{Cite GNIS}} – for links to U.S. geographic feature names from Geographic Names Information System (GNIS)
- {{Cite web}}
List of pages linking to geonames.nga.mil:
- Special:Linksearch/geonames.nga.mil/namesgaz/detaillinksearch.asp (current format)
- Special:Linksearch/geonames.nga.mil/ggmagaz/detaillinksearch.asp (old format)
External links