Difference between revisions of "Template:JPL/doc"

From blackwiki
Jump to navigation Jump to search
imported>Rfassbind
(→‎Usage: revise description)
imported>Rfassbind
Line 29: Line 29:
  
 
If the second parameter is named with {{para|cad}}, a link to the object's ''close approach data'' (cad) section is produced instead.<br />Example for the near-Earth object [[99942 Apophis]]:
 
If the second parameter is named with {{para|cad}}, a link to the object's ''close approach data'' (cad) section is produced instead.<br />Example for the near-Earth object [[99942 Apophis]]:
* <code><nowiki>{{JPL|99942|cad=Close approaches of Apophis}}</nowiki></code> → {{JPL|99942|cad=close approaches of Apophis}}
+
* <code><nowiki>{{JPL|99942|cad=Close approaches of Apophis}}</nowiki></code> → {{JPL|99942|cad=Close approaches of Apophis}}
  
 
== See also ==
 
== See also ==

Revision as of 20:42, 28 February 2018

Usage

This template creates an external link to the JPL Small-Body Database Browser (SBDB) for a specific small Solar System body such as an asteroid or a comet.

First parameter: identifier

The required first parameter is the body's unique identifier. Several identifiers are possible:

For minor-planets
For comets
  • {{JPL|17P}}JPL, for numbered comet 17P/Holmes (note without "/" and name)
  • {{JPL|P/2011+NO1}}JPL, for unnumbered comet P/2011 NO1 (note the "+"-sign)
Using SPK-ID
  • For special cases, use SBDB's interal reference key (spk-id). For example, comets with fragments (e.g. 205P/Giacobini, use {{JPL|1000933}} (JPL) instead of {{JPL|205P}} (JPL) The spk-id needs to be looked-up at SDBD first (it is displayed in the title section).

Second parameter: label

The optional second parameter is used as a replacement for the wikilink text. The default is "JPL" as in all examples above. It may be changed to any given text. For example:

Close approach data

If the second parameter is named with |cad=, a link to the object's close approach data (cad) section is produced instead.
Example for the near-Earth object 99942 Apophis:

See also

Template:Minor planet templates/See also