Template:Gazetteer of Planetary Nomenclature
Revision as of 01:53, 14 August 2018 by en>Zyxw (Update handling of missing ID, previous placement of category prevented it from being included. If Wikidata property has multiple values, only use first one. Add fix for empty parameters. Trim any leading spaces in ID that would break URL.)
"{{{name}}}". Gazetteer of Planetary Nomenclature. USGS Astrogeology Research Program.
This template uses the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
This template generates external links into the United States Geological Survey's Gazetteer of Planetary Nomenclature.
Contents
Usage
- First parameter (id)
- The first parameter specifies the feature's identifying number. Alternatively, the number can be specified using
id=
. {{Gazetteer of Planetary Nomenclature | ID }}
{{Gazetteer of Planetary Nomenclature | id= ID }}
- 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. {{Gazetteer of Planetary Nomenclature | ID | NAME }}
{{Gazetteer of Planetary Nomenclature | id= ID | name= NAME }}
- Without parameters
- If used with out parameters, the template will fetch the ID from Wikidata property Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value). (P2824). The
name=
parameter may be used if the feature name is different than the article name. {{Gazetteer of Planetary Nomenclature}}
{{Gazetteer of Planetary Nomenclature | name= NAME }}
Examples
ID in template
URL:
- https://planetarynames.wr.usgs.gov/Feature/5948
Usage in the article Tharsis Montes, with article name as link text:
{{Gazetteer of Planetary Nomenclature | 5948 }}
{{Gazetteer of Planetary Nomenclature | id= 5948 }}
Usage with name parameter as link text:
{{Gazetteer of Planetary Nomenclature | 5948 | Tharsis Montes }}
{{Gazetteer of Planetary Nomenclature | id= 5948 | name= Tharsis Montes }}
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:
{{Gazetteer of Planetary Nomenclature}}
Output:
- Template:First word "Gazetteer of Planetary Nomenclature". Gazetteer of Planetary Nomenclature. USGS Astrogeology Research Program.
Tracking category
See also
- External link templates for minor planets
- Local link templates for minor planets and on related topics
- Link templates on Solar System features
- Others
- {{GNIS}}, physical and cultural features in the United States
External links
The above documentation is transcluded from Template:Gazetteer of Planetary Nomenclature/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |