m →Usage: Move WL up
|
m →Usage: insert -> use, where appropriate
|
||
Line 9: | Line 9: | ||
==Template:mp== |
==Template:mp== |
||
* To quickly format a minor planet ''identified solely by its provisional designation'' (i.e. without a catalogue number), |
* To quickly format a minor planet ''identified solely by its provisional designation'' (i.e. without a catalogue number), use the following pseudocode: |
||
*:: <span style="color:#009">{{mono|<nowiki>{{mp|<leading numbers and letters>|<subscript number, if applicable>}}</nowiki>}}</span> |
*:: <span style="color:#009">{{mono|<nowiki>{{mp|<leading numbers and letters>|<subscript number, if applicable>}}</nowiki>}}</span> |
||
*: For example, to create {{mp|2004 MN|4}}, |
*: For example, to create {{mp|2004 MN|4}}, use: |
||
*:: <span style="color:#900">{{mono|<nowiki>{{mp|2004 MN|4}}</nowiki>}}</span> |
*:: <span style="color:#900">{{mono|<nowiki>{{mp|2004 MN|4}}</nowiki>}}</span> |
||
* To quickly format a minor planet known by ''a combination of a permanent catalogue number and a provisional designation'', |
* To quickly format a minor planet known by ''a combination of a permanent catalogue number and a provisional designation'', use the following pseudocode: |
||
*:: <span style="color:#009">{{mono|<nowiki>{{mp|<catalogue number>|<provisional designation's leading numbers and letters>|<provisional designation's subscript number, if applicable>}}</nowiki>}}</span> |
*:: <span style="color:#009">{{mono|<nowiki>{{mp|<catalogue number>|<provisional designation's leading numbers and letters>|<provisional designation's subscript number, if applicable>}}</nowiki>}}</span> |
||
*: For example, to create {{mp|15788|1993 SB}}, |
*: For example, to create {{mp|15788|1993 SB}}, use: |
||
*:: <span style="color:#900">{{mono|<nowiki>{{mp|15788|1993 SB}}</nowiki>}}</span> |
*:: <span style="color:#900">{{mono|<nowiki>{{mp|15788|1993 SB}}</nowiki>}}</span> |
||
*: Or, to create {{mp|15760|1992 QB|1}}, |
*: Or, to create {{mp|15760|1992 QB|1}}, use: |
||
*:: <span style="color:#900">{{mono|<nowiki>{{mp|15760|1992 QB|1}}</nowiki>}}</span> |
*:: <span style="color:#900">{{mono|<nowiki>{{mp|15760|1992 QB|1}}</nowiki>}}</span> |
||
*: 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, {{mp|(15760) 1992 QB|1}} can also be created by |
*: 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, {{mp|(15760) 1992 QB|1}} can also be created by using: |
||
*:: <span style="color:#900">{{mono|<nowiki>{{mp|(15760) 1992 QB|1}}</nowiki>}}</span> |
*:: <span style="color:#900">{{mono|<nowiki>{{mp|(15760) 1992 QB|1}}</nowiki>}}</span> |
||
* 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, |
* 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: |
||
*:: <span style="color:#009">{{mono|<nowiki>{{mp|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>}}</nowiki>}}</span> |
*:: <span style="color:#009">{{mono|<nowiki>{{mp|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>}}</nowiki>}}</span> |
||
*: 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. |
*: 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 {{mp|S|2000|1998 WW|31|1}}, |
*: For example, to create {{mp|S|2000|1998 WW|31|1}}, use: |
||
*:: <span style="color:#900">{{mono|<nowiki>{{mp|S|2000|1998 WW|31|1}}</nowiki>}}</span> |
*:: <span style="color:#900">{{mono|<nowiki>{{mp|S|2000|1998 WW|31|1}}</nowiki>}}</span> |
||
*: Or, to create {{mp|S|2005|1994 XD|1}}, |
*: Or, to create {{mp|S|2005|1994 XD|1}}, use: |
||
*:: <span style="color:#900">{{mono|<nowiki>{{mp|S|2005|1994 XD|1}}</nowiki>}}</span> |
*:: <span style="color:#900">{{mono|<nowiki>{{mp|S|2005|1994 XD|1}}</nowiki>}}</span> |
||
*: Or, to create {{mp|S|2003|11264|1}}, |
*: Or, to create {{mp|S|2003|11264|1}}, use: |
||
*:: <span style="color:#900">{{mono|<nowiki>{{mp|S|2003|11264|1}}</nowiki>}}</span> |
*:: <span style="color:#900">{{mono|<nowiki>{{mp|S|2003|11264|1}}</nowiki>}}</span> |
||
Line 36: | Line 36: | ||
To insert a link in the same way, use [[Template:mpl]]. It obeys exactly the same input syntax as described above, but instead outputs wikilinks to the appropriate namespace. |
To insert a link in the same way, use [[Template:mpl]]. 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 {{mpl|2009 YE|7}}, |
For example, to create a wikilink to {{mpl|2009 YE|7}}, use: |
||
::: <span style="color:#900">{{mono|<nowiki>{{mpl|2009 YE|7}}</nowiki>}}</span> |
::: <span style="color:#900">{{mono|<nowiki>{{mpl|2009 YE|7}}</nowiki>}}</span> |
||
Or, to create a wikilink to {{mpl|15760|1992 QB|1}}, |
Or, to create a wikilink to {{mpl|15760|1992 QB|1}}, use: |
||
::: <span style="color:#900">{{mono|<nowiki>{{mpl|15760|1992 QB|1}}</nowiki>}}</span> |
::: <span style="color:#900">{{mono|<nowiki>{{mpl|15760|1992 QB|1}}</nowiki>}}</span> |
||
Note, as with ''Template:mp'', 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, {{mpl|(15760) 1992 QB|1}} can also be created by |
Note, as with ''Template:mp'', 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, {{mpl|(15760) 1992 QB|1}} can also be created by using: |
||
::: <span style="color:#900">{{mono|<nowiki>{{mpl|(15760) 1992 QB|1}}</nowiki>}}</span> |
::: <span style="color:#900">{{mono|<nowiki>{{mpl|(15760) 1992 QB|1}}</nowiki>}}</span> |
||
Finally, to create a wikilink to {{mpl|S|2000|1998 WW|31|1}}, |
Finally, to create a wikilink to {{mpl|S|2000|1998 WW|31|1}}, use: |
||
::: <span style="color:#900">{{mono|<nowiki>{{mpl|S|2000|1998 WW|31|1}}</nowiki>}}</span> |
::: <span style="color:#900">{{mono|<nowiki>{{mpl|S|2000|1998 WW|31|1}}</nowiki>}}</span> |
||
Line 48: | Line 48: | ||
Sometimes, you may wish to insert 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:mpl-]] ('''mpl-''' [minus] for "minor planet link, abridged"). |
Sometimes, you may wish to insert 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:mpl-]] ('''mpl-''' [minus] for "minor planet link, abridged"). |
||
::: <span style="color:#009">{{mono|<nowiki>{{mpl-|<catalogue number>|<provisional designation's leading numbers and letters>|<subscript number, if applicable>}}</nowiki>}}</span> |
::: <span style="color:#009">{{mono|<nowiki>{{mpl-|<catalogue number>|<provisional designation's leading numbers and letters>|<subscript number, if applicable>}}</nowiki>}}</span> |
||
To insert a wikilink to {{mp|15760|1992 QB|1}} without showing the "(15760)" part (like so: {{mpl-|15760|1992 QB|1}}), |
To insert a wikilink to {{mp|15760|1992 QB|1}} without showing the "(15760)" part (like so: {{mpl-|15760|1992 QB|1}}), use: |
||
::: <span style="color:#900">{{mono|<nowiki>{{mpl-|15760|1992 QB|1}}</nowiki>}}</span> |
::: <span style="color:#900">{{mono|<nowiki>{{mpl-|15760|1992 QB|1}}</nowiki>}}</span> |
||
Line 56: | Line 56: | ||
==Template:mpm== |
==Template:mpm== |
||
To insert a wikilink to a minor planet's moon (where the minor planet is known by a provisional designation), |
To insert a wikilink to a minor planet's moon (where the minor planet is known by a provisional designation), use the following pseudocode: |
||
::: <span style="color:#009">{{mono|<nowiki>{{mpm|<leading numbers and letters>|<subscript number>|<trailing letters and numbers>}}</nowiki>}}</span> |
::: <span style="color:#009">{{mono|<nowiki>{{mpm|<leading numbers and letters>|<subscript number>|<trailing letters and numbers>}}</nowiki>}}</span> |
||
For example, to create {{mpm|S/2000 (1998 WW|31|) 1}}, |
For example, to create {{mpm|S/2000 (1998 WW|31|) 1}}, use: |
||
::: <span style="color:#900">{{mono|<nowiki>{{mpm|S/2000 (1998 WW|31|) 1}}</nowiki>}}</span> |
::: <span style="color:#900">{{mono|<nowiki>{{mpm|S/2000 (1998 WW|31|) 1}}</nowiki>}}</span> |
||
==Template:mpm-== |
==Template:mpm-== |
||
To insert the name of a minor planet's moon (where the minor planet is known by a provisional designation), |
To insert the name of a minor planet's moon (where the minor planet is known by a provisional designation), use the following pseudocode: |
||
::: <span style="color:#009">{{mono|<nowiki>{{mpm-|<leading numbers and letters>|<subscript number>|<trailing letters and numbers>}}</nowiki>}}</span> |
::: <span style="color:#009">{{mono|<nowiki>{{mpm-|<leading numbers and letters>|<subscript number>|<trailing letters and numbers>}}</nowiki>}}</span> |
||
For example, to create {{mpm-|S/2000 (1998 WW|31|) 1}}, |
For example, to create {{mpm-|S/2000 (1998 WW|31|) 1}}, use: |
||
::: <span style="color:#900">{{mono|<nowiki>{{mpm-|S/2000 (1998 WW|31|) 1}}</nowiki>}}</span> |
::: <span style="color:#900">{{mono|<nowiki>{{mpm-|S/2000 (1998 WW|31|) 1}}</nowiki>}}</span> |
||
This is a documentation subpage for Template:Minor planet. It may contain usage information, categories and other content that is not part of the original template page. |
The template mp (for "minor planet") easily formats the nomenclature of those minor planets that are known in whole or in part by their provisional designation. The template mpl (for "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 ( )
.
To insert a link in the same way, use Template:mpl. 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:
Or, to create a wikilink to (15760) 1992 QB1, use:
Note, as with Template:mp, 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:
Finally, to create a wikilink to S/2000 (1998 WW31) 1, use:
Sometimes, you may wish to insert 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:mpl- (mpl- [minus] for "minor planet link, abridged").
To insert a wikilink to (15760) 1992 QB1 without showing the "(15760)" part (like so: 1992 QB1), use:
Produces a formatted version of a minor planet designation as in, for example:
To insert a wikilink to a minor planet's moon (where the minor planet is known by a provisional designation), use the following pseudocode:
For example, to create S/2000 (1998 WW31) 1, use:
To insert the name of a minor planet's moon (where the minor planet is known by a provisional designation), use the following pseudocode:
For example, to create S/2000 (1998 WW31) 1, use:
External link templates for minor planets
Local link templates for minor planets and on related topics
Link templates on Solar System features
Partial list templates (minor planets/meanings/named-MPs)