Misplaced Pages

Template:JPL small body

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

This is an old revision of this page, as edited by Headbomb (talk | contribs) at 00:16, 2 September 2012 (Undid revision 510269709 by Hqb (talk) links are used for lots of things, clutter is very little compared to the benefits). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 00:16, 2 September 2012 by Headbomb (talk | contribs) (Undid revision 510269709 by Hqb (talk) links are used for lots of things, clutter is very little compared to the benefits)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 3,700 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:

{{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

External link templates for minor planets

Local link templates for minor planets and on related topics

Link templates on Solar System features

  • {{GPN}} (inline citations)
  • {{WGPSN}} (external links)

Partial list templates (minor planets/meanings/named-MPs)

The above documentation is transcluded from Template:JPL small body/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Categories:
Template:JPL small body Add topic