Difference between revisions of "Template:JPL"

From blackwiki
Jump to navigation Jump to search
imported>K-iczn
imported>Rfassbind
(tentative > using param "cad" to display and anchor "Close-Approach Data" at JPL (overrides "wikilink text", the optional 2nd parameter)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[http://ssd.jpl.nasa.gov/sbdb.cgi?sstr={{{1}}} {{{2|†}}}]<noinclude>
+
<small>[https://ssd.jpl.nasa.gov/sbdb.cgi?{{#if:{{{cad|}}}|sstr={{{1}}}{{;}}cad=1#cad {{{cad}}}|sstr={{{1}}}#content {{#if:{{{2|}}}|{{{2}}}|JPL}}}}]</small><noinclude>
 
+
{{Documentation}}
{{documentation|content=
+
</noinclude>
 
 
This template creates a minor planet citation link to the JPL Small-Body Database Browser. It takes two arguments:
 
*The first is the minor planet's number
 
*The second, optional, is the symbol to use for the link; the default is a dagger (†)
 
 
 
== See also ==
 
* {{tl|JPL small body}}
 
* {{tl|MPC}}
 
* {{tl|MPCit MPES}}
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Astronomy external link templates]]
 
[[Category:Minor planet templates]]
 
}}</includeonly>
 
}}</noinclude>
 

Latest revision as of 16:32, 22 February 2018

JPL

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

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
  • {{JPL|2436}} produces JPL, for numbered asteroid 2436 Hatshepsut
  • {{JPL|2018+CN2}} produces JPL, for provisionally designated asteroid Template:Mpl (note the "+"-sign)
For comets
  • {{JPL|17P}} produces JPL, for numbered comet 17P/Holmes (note without "/" and name)
  • {{JPL|P/2011+NO1}} produces 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) A body's spk-id is displayed in the title section at SBDB.

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 link templates/See also