Template:Mp/doc

< Template:Mp

Usage

The template minor planet easily formats the nomenclature of those minor planets that are known in whole or in part by their provisional designation. The template minor planet link obeys exactly the same syntax but outputs a wikilink to an article at the appropriate namespace. Use of these templates avoids Unicode complexities in article titles while still rendering subscripts.

The templates have been designed to allow the designations to be entered with a minimum of modification needed; pipe | characters replace transitions to and from subscript, as well as slashes / and parentheses ( ).

Template:minor planet

  • To quickly format a minor planet identified solely by its provisional designation (i.e. without a catalogue number), use the following pseudocode:
    <syntaxhighlight lang="wikitext"><leading numbers and letters><subscript number, if applicable></syntaxhighlight>
    For example, to create 2004 MN4, use:
    <syntaxhighlight lang="wikitext">2004 MN4</syntaxhighlight>
  • To quickly format a minor planet known by a combination of a permanent catalogue number and a provisional designation, use the following pseudocode:
    <syntaxhighlight lang="wikitext"><catalogue number><provisional designation's leading numbers and letters></syntaxhighlight>
    For example, to create 157881993 SB, use:
    <syntaxhighlight lang="wikitext">(15788) 1993 SB</syntaxhighlight>
    Or, to create 157601992 QB, use:
    <syntaxhighlight lang="wikitext">(15760) 1992 QB1</syntaxhighlight>
    Note that similar results as the above can also be obtained by placing both the catalogue number (in parentheses) and the provisional designation in a single field. For example, (15760) 1992 QB1 can also be created by using:
    <syntaxhighlight lang="wikitext">(15760) 1992 QB1</syntaxhighlight>
  • The provisional designations for satellites of minor planets make reference to the primary (the "parent body"): either to the primary's permanent catalogue number, or to the primary's provisional designation, but never both. To quickly format the provisional designation of a satellite of a minor planet, use the following pseudocode:
    <syntaxhighlight lang="wikitext">S/<satellite's year of discovery> (<primary's catalogue number OR primary's provisional designation's leading numbers and letters><primary's provisional designation's subscript number, if applicable>) <satellite's trailing number></syntaxhighlight>
    Note that the template functions with either four or five fields used; in the event there is no subscripted text to be included, one can use only four fields and the last field will be assumed to define the trailing number.
    For example, to create S/2000 (1998 WW31) 1, use:
    <syntaxhighlight lang="wikitext">S/2000 (1998 WW31) 1</syntaxhighlight>
    Or, to create S2005, use:
    <syntaxhighlight lang="wikitext">S/2005 (1994 XD) 1</syntaxhighlight>
    Or, to create S2003, use:
    <syntaxhighlight lang="wikitext">S/2003 (11264) 1</syntaxhighlight>

Template:minor planet link

To create a wikilink in the same way, use Template:minor planet link. It obeys exactly the same input syntax as described above, but instead outputs wikilinks to the appropriate namespace.

For example, to create a wikilink to 2009 YE7, use:

<syntaxhighlight lang="wikitext">2009 YE7</syntaxhighlight>

Or, to create a wikilink to (15760) 1992 QB1, use:

<syntaxhighlight lang="wikitext">(15760) 1992 QB1</syntaxhighlight>

Note, as with Template:minor planet, that a similar output as the above can also be obtained by placing both the catalogue number (in parentheses) and the provisional designation in a single field. To use the above example again, (15760) 1992 QB1 can also be created by using:

<syntaxhighlight lang="wikitext">(15760) 1992 QB1</syntaxhighlight>

Finally, to create a wikilink to S/2000 (1998 WW31) 1, use:

<syntaxhighlight lang="wikitext">S/2000 (1998 WW31) 1</syntaxhighlight>

Template:minor planet link abridged

Sometimes, you may wish to create a wikilink to a minor planet with a permanent catalogue number while abridging the catalogue number from in-line display. For this purpose use Template:minor planet link abridged

<syntaxhighlight lang="wikitext">[[(<catalogue number>) <provisional designation's leading numbers and letters><subscript number, if applicable>|<provisional designation's leading numbers and letters><subscript number, if applicable>]]</syntaxhighlight>

To create a wikilink to 157601992 QB without showing the "(15760)" part (like so: 1992 QB1), use:

<syntaxhighlight lang="wikitext">1992 QB1</syntaxhighlight>

Template:minor planet moon link

To create a wikilink to a minor planet's moon (where the minor planet is known by a provisional designation), use the following pseudocode:

<syntaxhighlight lang="wikitext">[[<leading numbers and letters><subscript number><trailing letters and numbers>|<leading numbers and letters><subscript number><trailing letters and numbers>]]</syntaxhighlight>

For example, to create S/2000 (1998 WW31) 1, use:

<syntaxhighlight lang="wikitext">S/2000 (1998 WW31) 1</syntaxhighlight>

Template:minor planet moon link abridged

To format the name of a minor planet's moon (where the minor planet is known by a provisional designation), use the following pseudocode:

<syntaxhighlight lang="wikitext"><leading numbers and letters><subscript number><trailing letters and numbers></syntaxhighlight>

For example, to create S/2000 (1998 WW31) 1, use:

<syntaxhighlight lang="wikitext">S/2000 (1998 WW31) 1</syntaxhighlight>

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)