Difference between revisions of "Template:JPL/doc"
Jump to navigation
Jump to search
imported>Rfassbind m (rmv {{High-use|3,187}}; wrong target template) |
imported>Rfassbind (→Usage: revise description) |
||
| Line 2: | Line 2: | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
== Usage == | == Usage == | ||
| − | This template creates | + | |
| + | This template creates an external link to the [http://ssd.jpl.nasa.gov/sbdb.cgi 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 | ||
| + | * <code><nowiki>{{JPL|2436}}</nowiki></code> → {{JPL|2436}}, for numbered asteroid [[2436 Hatshepsut]] | ||
| + | * <code><nowiki>{{JPL|2018+CN2}}</nowiki></code> → {{JPL|2018+CN2}}, for provisionally designated Apollo asteroid {{mpl|2018 CN|2}} (note the "+"-sign) | ||
| + | |||
| + | ; For comets | ||
| + | * <code><nowiki>{{JPL|17P}}</nowiki></code> → {{JPL|17P}}, for numbered comet [[17P/Holmes]] (note without "/" and name) | ||
| + | * <code><nowiki>{{JPL|P/2011+NO1}}</nowiki></code> → {{JPL|P/2011+NO1}}, 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 <code><nowiki>{{JPL|1000933}}</nowiki></code> ({{JPL|1000933}}) instead of <code><nowiki>{{JPL|205P}}</nowiki></code> ({{JPL|205P}}) 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 <code>"JPL"</code> as in all examples above. It may be changed to any given text. For example: | ||
| + | * <code><nowiki>{{JPL|2436|(2436) Hatshepsut}}</nowiki></code> → {{JPL|2436|(2436) Hatshepsut}} | ||
| + | * <code><nowiki>{{JPL|17P|Comet Holmes}}</nowiki></code> → {{JPL|17P|Comet Holmes}} | ||
| + | |||
| + | ; Close approach data | ||
| + | |||
| + | 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}} | ||
== See also == | == See also == | ||
Revision as of 20:38, 28 February 2018
| This is a documentation subpage for Template:JPL. It contains usage information, categories and other content that is not part of the original template page. |
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}}→ JPL, for numbered asteroid 2436 Hatshepsut{{JPL|2018+CN2}}→ JPL, for provisionally designated Apollo asteroid Template:Mpl (note the "+"-sign)
- 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:
{{JPL|2436|(2436) Hatshepsut}}→ (2436) Hatshepsut{{JPL|17P|Comet Holmes}}→ Comet Holmes
- 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:
{{JPL|99942|cad=Close approaches of Apophis}}→ close approaches of Apophis
See also
Template:Minor planet templates/See also