Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Template:mp  





1.2  Template:mpl  





1.3  Template:mpl-  





1.4  Template:mpf  







2 See also  














Template:Minor planet/doc: Difference between revisions







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Printable version
 
















Appearance
   

 





Help
 

From Wikipedia, the free encyclopedia
 

< Template:Minor planet

Browse history interactively
 Previous editNext edit 
Content deleted Content added
m ==See also== {{Minor planet templates/See also}}
→‎Template:mp: "insert the below string" means "insert this text exactly as it appears", which is obviously not the intended meaning; changing to "insert the following pseudocode" and adding html-style <tags> to the string
Line 8: Line 8:


====Template:mp====

====Template:mp====

* To quickly format a minor planet ''identified solely by its provisional designation'' (i.e. without a catalogue number), insert the below string:

* To quickly format a minor planet ''identified solely by its provisional designation'' (i.e. without a catalogue number), insert 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}}, insert

*: For example, to create {{mp|2004 MN|4}}, insert

*:: <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'', insert the below string

* To quickly format a minor planet known by ''a combination of a permanent catalogue number and a provisional designation'', insert 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}}, insert

*: For example, to create {{mp|15788|1993 SB}}, insert

*:: <span style="color:#900">{{mono|<nowiki>{{mp|15788|1993 SB}}</nowiki>}}</span>

*:: <span style="color:#900">{{mono|<nowiki>{{mp|15788|1993 SB}}</nowiki>}}</span>

Line 22: Line 22:

*:: <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, insert the below string:

* 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, insert 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}}, insert

*: For example, to create {{mp|S|2000|1998 WW|31|1}}, insert


Revision as of 15:10, 17 January 2018

Usage

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

Template:mpl

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

{{mpl|2009 YE|7}}

Or, to create a wikilink to (15760) 1992 QB1, insert

{{mpl|15760|1992 QB|1}}

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

{{mpl|(15760) 1992 QB|1}}

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

{{mpl|S|2000|1998 WW|31|1}}

Template:mpl-

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").

{{mpl-|catalogue number|provisional designation's leading numbers and letters|subscript number (if applicable)}}

To insert a wikilink to (15760) 1992 QB1 without showing the "(15760)" part (like so: 1992 QB1), insert:

{{mpl-|15760|1992 QB|1}}

Template:mpf

Produces a formatted version of a minor planet designation as in, for example:

See also

External link templates for minor planets

  • {{DoMP}}
  • {{ESA-SSA}}
  • {{JA-BIN}}
  • {{JPL}}
  • {{JPL small body}}
  • {{JPL+CAD}} (two links: JPL main page & "close approach data" section)
  • {{LCDB}}
  • {{MPC}}
  • {{NeoDys}}
  • {{M+J}} (combines MPC & JPL templates)
  • {{WGSBNB}} (bulletin of IAU's WGSBN)
  • Local link templates for minor planets and on related topics

    Link templates on Solar System features

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


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Minor_planet/doc&oldid=820947838"

    Hidden category: 
    Template documentation pages
     



    This page was last edited on 17 January 2018, at 15:10 (UTC).

    This version of the page has been revised. Besides normal editing, the reason for revision may have been that this version contains factual inaccuracies, vandalism, or material not compatible with the Creative Commons Attribution-ShareAlike License.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki