Bản mẫu:Mp/doc

= Cách sử dụng =
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 ( ).

**Template:mp**
 To quickly format a minor planet identified solely by its provisional designation (i.e. without a catalogue number), use the following pseudocode:
*:: 
*: For example, to create 4, use:
*:: - To quickly format a minor planet known by a combination of a permanent catalogue number and a provisional designation, use the following pseudocode:
*:: 
*:  For example,  to create 1993 SB, use:
*::  
*:  Or, to create 1, use:
*::  
*:  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, 1 can also be created by using:
*:: - 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:
*:: 
*: 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 1, use:
*:: 
*: Or, to create 1, use:
*:: 
*: Or, to create 1, use:
*:: 

**Template:mpl**
To create a wikilink 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 7, use:
:: 
Or, to create a wikilink to 1, 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, 1 can also be created by using:
::  
Finally, to create a wikilink to 1, use:
::  

**Template:mpl-**
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:mpl- (mpl- minus for "minor planet link, abridged").
:: 
To create a wikilink to 1 without showing the "(15760)" part (like so: 1), use:
:: 

**Template:mpm**
To create 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 ) 1, use:
:: 

**Template:mpm-**
To format 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 ) 1, use:
:: 
**See also=