Difference between revisions of "Template:Gazetteer of Planetary Nomenclature/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (fix name)
imported>Zyxw
m (fix id)
Line 27: Line 27:
 
=== ID in template ===
 
=== ID in template ===
 
''URL:''
 
''URL:''
: <kbd>https://<nowiki/>planetarynames.wr.usgs.gov/Feature/{{hilite|160142}}</kbd>
+
: <kbd>https://<nowiki/>planetarynames.wr.usgs.gov/Feature/{{hilite|5948}}</kbd>
 
''Usage in the article [[Tharsis Montes]], with article name as link text:''
 
''Usage in the article [[Tharsis Montes]], with article name as link text:''
 
: {{tlcw|{{BASEPAGENAME}} | 5948 }}
 
: {{tlcw|{{BASEPAGENAME}} | 5948 }}
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 5948 }}
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 5948 }}
 
''Usage with name parameter as link text:''
 
''Usage with name parameter as link text:''
: {{tlcw|{{BASEPAGENAME}} | 160142 | Tharsis Montes }}
+
: {{tlcw|{{BASEPAGENAME}} | 5948 | Tharsis Montes }}
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 160142 | name{{=}} Tharsis Montes }}
+
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 5948 | name{{=}} Tharsis Montes }}
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}} | 160142 | Tharsis Montes }}
+
: {{{{BASEPAGENAME}} | 5948 | Tharsis Montes }}
: {{{{BASEPAGENAME}} | id= 160142 | name= Tharsis Montes }}
+
: {{{{BASEPAGENAME}} | id= 5948 | name= Tharsis Montes }}
  
 
=== No ID in template or Wikidata ===
 
=== No ID in template or Wikidata ===

Revision as of 00:41, 14 August 2018

Template:Uses Wikidata

This template generates external links into the United States Geological Survey's Gazetteer of Planetary Nomenclature.

Usage

First parameter (id)
The first parameter specifies the feature's identifying number. Alternatively, the number can be specified using id=.
Template:Tlcw
Template:Tlcw
Second parameter (name)
If supplied, the second parameter specifies the feature's name, which is used as the anchor text for the external link. Alternatively, the name can be specified using name=. If no name is supplied, the article name is used. The name parameter is useful to refer to a feature other than the topic of the article.
Template:Tlcw
Template:Tlcw
Without parameters
If used with out parameters, the template will fetch the ID from Wikidata property Template:Property. The name= parameter may be used if the feature name is different than the article name.
Template:Tlcw
Template:Tlcw

Examples

ID in template

URL:

https://planetarynames.wr.usgs.gov/Feature/5948

Usage in the article Tharsis Montes, with article name as link text:

Template:Tlcw
Template:Tlcw

Usage with name parameter as link text:

Template:Tlcw
Template:Tlcw

Output:

"Tharsis Montes". Gazetteer of Planetary Nomenclature. USGS Astrogeology Research Program.
"Tharsis Montes". Gazetteer of Planetary Nomenclature. USGS Astrogeology Research Program.

No ID in template or Wikidata

Usage:

Template:Tlcw

Output:

"Gazetteer of Planetary Nomenclature/doc". Gazetteer of Planetary Nomenclature. USGS Astrogeology Research Program.

Tracking category

See also

Template:Minor planet templates/See also

Others
  • {{GNIS}}, physical and cultural features in the United States

External links