Difference between revisions of "Template:Cite gns/doc"

From blackwiki
Jump to navigation Jump to search
imported>Toddy1
m (Reverted edits by You better look out below! (talk) to last version by John of Reading)
imported>Zyxw
m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
Line 25: Line 25:
 
|}
 
|}
  
The fields '''<tt>id</tt>''' and '''<tt>name</tt>''' must be specified. The '''<tt>accessdate</tt>''' is optional.
+
The fields '''<kbd>id</kbd>''' and '''<kbd>name</kbd>''' must be specified. The '''<kbd>accessdate</kbd>''' is optional.
  
 
== 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 <tt>id</tt> 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>
+
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 35:
 
* [[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 <tt>id</tt> is the [[alphanumeric]] value between the single quotes. For example, the <tt>id</tt> for Mount Logan is 32FA8842BEDB3774E0440003BA962ED3.
+
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 42:
 
== Examples ==
 
== Examples ==
 
;with named parameters:
 
;with named parameters:
<tt><nowiki>{{cite gns |id=32FA8842BEDB3774E0440003BA962ED3 |name=Mount Logan}}</nowiki></tt> → {{cite gns |id=32FA8842BEDB3774E0440003BA962ED3 |name=Mount Logan}}
+
<kbd><nowiki>{{cite gns |id=32FA8842BEDB3774E0440003BA962ED3 |name=Mount Logan}}</nowiki></kbd> → {{cite gns |id=32FA8842BEDB3774E0440003BA962ED3 |name=Mount Logan}}
  
 
;with unnamed parameters:
 
;with unnamed parameters:
<tt><nowiki>{{cite gns |32FA8842BEDB3774E0440003BA962ED3 |Mount Logan |2011-05-22}}</nowiki></tt> → {{cite gns |32FA8842BEDB3774E0440003BA962ED3 |Mount Logan |2011-05-22}}
+
<kbd><nowiki>{{cite gns |32FA8842BEDB3774E0440003BA962ED3 |Mount Logan |2011-05-22}}</nowiki></kbd> → {{cite gns |32FA8842BEDB3774E0440003BA962ED3 |Mount Logan |2011-05-22}}
  
 
== See also ==
 
== See also ==

Revision as of 06:24, 5 August 2018


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 = 
| accessdate = 
}}
 
Alphanumeric value described below
"Name (Reading Order)" from search results
Full date
  

The fields id and name must be specified. The accessdate is optional.

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

  1. 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:

List of pages linking to geonames.nga.mil:

External links