m →Usage: Template:Mpm & Template:Mpm- {{Documentation needed|date=January 2018}} x2
|
→Usage: Found original documentation at Template talk:Mpm & Template talk:Mpm-; preliminary formatting
|
||
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), insert the following pseudocode: |
|||
{{Documentation needed|date=January 2018}} |
|||
'''<nowiki>{{mpm|<leading numbers and letters>|<subscript number>|<trailing letters and numbers>}}</nowiki>''' |
|||
For example, to create {{mpm|S/2000 (1998 WW|31|) 1}}, insert |
|||
'''<nowiki>{{mpm|S/2000 (1998 WW|31|) 1}}</nowiki>''' |
|||
====Template:mpm-==== |
====Template:mpm-==== |
||
To insert the name of a minor planet's moon (where the minor planet is known by a provisional designation), insert the following pseudocode: |
|||
{{Documentation needed|date=January 2018}} |
|||
'''<nowiki>{{mpm-|<leading numbers and letters>|<subscript number>|<trailing letters and numbers>}}</nowiki>''' |
|||
For example, to create {{mpm-|S/2000 (1998 WW|31|) 1}}, insert |
|||
'''<nowiki>{{mpm-|S/2000 (1998 WW|31|) 1}}</nowiki>''' |
|||
==See also== |
==See also== |
![]() | 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, insert
Or, to create a wikilink to (15760) 1992 QB1, insert
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 inserting
Finally, to create a wikilink to S/2000 (1998 WW31) 1, insert
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), insert:
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), insert the following pseudocode:
{{mpm|<leading numbers and letters>|<subscript number>|<trailing letters and numbers>}}
For example, to create S/2000 (1998 WW31) 1, insert
{{mpm|S/2000 (1998 WW|31|) 1}}
To insert the name of a minor planet's moon (where the minor planet is known by a provisional designation), insert the following pseudocode:
{{mpm-|<leading numbers and letters>|<subscript number>|<trailing letters and numbers>}}
For example, to create S/2000 (1998 WW31) 1, insert
{{mpm-|S/2000 (1998 WW|31|) 1}}
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)