Difference between revisions of "Template:JPL small body"

From blackwiki
Jump to navigation Jump to search
imported>Elegie
(Use HTTPS for the JPL links in order to provide increased user privacy/security)
imported>Rfassbind
(Add item "Close approach" to template's link list in ABC-order; Example, for 1221 Amor > https://ssd.jpl.nasa.gov/sbdb.cgi?sstr=2001221;cad=1#cad)
Line 1: Line 1:
 
<noinclude>*</noinclude>[https://ssd.jpl.nasa.gov/sbdb.cgi?sstr={{urlencode:{{{id|{{#property:P716|{{{name|{{{1|{{PAGENAME}}}}}}}}}}}}}}}#content {{{name|{{{1|{{PAGENAMEBASE}}}}}}}}] at the ''[[JPL Small-Body Database]]''<includeonly>{{EditAtWikidata|pid=P716|{{{id|}}}}}{{#if:{{{id|}}}|{{WikidataCheck|property=P716|value={{{id|}}}|category=JPL Small-Body Database ID}}}}</includeonly>{{hide in print|1=
 
<noinclude>*</noinclude>[https://ssd.jpl.nasa.gov/sbdb.cgi?sstr={{urlencode:{{{id|{{#property:P716|{{{name|{{{1|{{PAGENAME}}}}}}}}}}}}}}}#content {{{name|{{{1|{{PAGENAMEBASE}}}}}}}}] at the ''[[JPL Small-Body Database]]''<includeonly>{{EditAtWikidata|pid=P716|{{{id|}}}}}{{#if:{{{id|}}}|{{WikidataCheck|property=P716|value={{{id|}}}|category=JPL Small-Body Database ID}}}}</includeonly>{{hide in print|1=
**[https://ssd.jpl.nasa.gov/sbdb.cgi?sstr={{urlencode:{{{id|{{{name|{{{1|{{#property:P716|{{PAGENAME}}}}}}}}}}}}}}}#discovery Discovery]{{·}}[https://ssd.jpl.nasa.gov/horizons.cgi?find_body=1&body_group=sb&sstr={{urlencode:{{{id|{{{name|{{{1|{{#property:P716|{{PAGENAME}}}}}}}}}}}}}}} Ephemeris]{{·}}[https://ssd.jpl.nasa.gov/sbdb.cgi?sstr={{urlencode:{{{id|{{{name|{{{1|{{#property:P716|{{PAGENAME}}}}}}}}}}}}}}}&orb=1#orb Orbit diagram]{{·}}[https://ssd.jpl.nasa.gov/sbdb.cgi?sstr={{urlencode:{{{id|{{{name|{{{1|{{#property:P716|{{PAGENAME}}}}}}}}}}}}}}}#elem Orbital elements]{{·}}[https://ssd.jpl.nasa.gov/sbdb.cgi?sstr={{urlencode:{{{id|{{{name|{{{1|{{#property:P716|{{PAGENAME}}}}}}}}}}}}}}}#phys_par Physical parameters]}}<noinclude>
+
**[https://ssd.jpl.nasa.gov/sbdb.cgi?sstr={{urlencode:{{{id|{{{name|{{{1|{{#property:P716|{{PAGENAME}}}}}}}}}}}}}}};cad=1#cad Close approach]{{·}}[https://ssd.jpl.nasa.gov/sbdb.cgi?sstr={{urlencode:{{{id|{{{name|{{{1|{{#property:P716|{{PAGENAME}}}}}}}}}}}}}}}#discovery Discovery]{{·}}[https://ssd.jpl.nasa.gov/horizons.cgi?find_body=1&body_group=sb&sstr={{urlencode:{{{id|{{{name|{{{1|{{#property:P716|{{PAGENAME}}}}}}}}}}}}}}} Ephemeris]{{·}}[https://ssd.jpl.nasa.gov/sbdb.cgi?sstr={{urlencode:{{{id|{{{name|{{{1|{{#property:P716|{{PAGENAME}}}}}}}}}}}}}}}&orb=1#orb Orbit diagram]{{·}}[https://ssd.jpl.nasa.gov/sbdb.cgi?sstr={{urlencode:{{{id|{{{name|{{{1|{{#property:P716|{{PAGENAME}}}}}}}}}}}}}}}#elem Orbital elements]{{·}}[https://ssd.jpl.nasa.gov/sbdb.cgi?sstr={{urlencode:{{{id|{{{name|{{{1|{{#property:P716|{{PAGENAME}}}}}}}}}}}}}}}#phys_par Physical parameters]}}<noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 01:56, 14 February 2018

Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

{{JPL small body}} is an external link template that points to the NASA Jet Propulsion Laboratory Small-Body Database Browser at http://ssd.jpl.nasa.gov/. To cite the database, use instead {{cite sbdb}}.

Usage

In ~90% of cases, it is not necessary to supply |name= and |id= parameters, since it defaults to the article name (i.e. {{PAGENAME}}), which usually results in a correct external link, caveats below. Thus, when used in the External links section, the following is usually sufficient

==External links==
* {{JPL small body}}

However, the template has two optional parameters:

  • |name= by default, this equal to the pagename ({{PAGENAME}}). Use this parameter when the pagename does not match what should be displayed by the template.
  • |id= used to override the default url to the database. Use this parameter when the default url does not result in a correct external link. Place the full SPK-ID found on the JPL database here. For example, 2867 Šteins has an SPK-ID of 2002867, so use |id=2002867.

Those will be relevant when diacritics, apostrophes, parentheses, or other special characters are used in the pagenames

  • The article name contains diacritics (e.g. 2867 Šteins) - JPL Small Body Database does not support diacritics. In this case, use {{JPL small body|id=2002867}}
  • The article name contains apostrophes (e.g. 21774 O'Brien) - a bug in the MediaWiki urlencode function results in a malformed external link. In this case, use {{JPL small body|id=2021774}}.
  • The article name is the asteroid's provisional name (e.g. (8619) 1981 EH1) - JPL Small Body Database search does not accept this. In this case, use {{JPL small body|id=2008619}} ).

Tracking categories

See also

Template:Minor planet link templates/See also