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:minor planet  





1.2  Template:minor planet link  





1.3  Template:minor planet link abridged  





1.4  Template:minor planet moon link  





1.5  Template:minor planet moon link abridged  







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  



Download as PDF
Printable version
 
















Appearance
   

 





Help
 

From Wikipedia, the free encyclopedia
 

< Template:Minor planet

Browse history interactively
 Previous edit
Content deleted Content added
m Remove unnecessary "()" usage in pseudocode to avoid confusion with their potentially-deliberate usage as mentioned in the lead
m →‎top: {{High-use}}
 
(20 intermediate revisions by 7 users not shown)
Line 1: Line 1:

{{Documentation subpage}}

{{Documentation subpage}}

{{High-use}}

<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

<!-- This /doc is used for multiple templates: [[Template:Mp]], [[Template:Mpl]], and [[Template:Mpl-]] -->

<!-- This /doc is used for &on multiple templates: [[Template:Minor planet]], [[Template:Minor planet link]], [[Template:Minor planet link abridged]], [[Template:Minor planet moon link]], [[Template:Minor planet moon link abriged]] -->



=== Usage ===

= Usage =

The template '''mp''' (for "minor planet") easily formats the nomenclature of those [[minor planet]]s 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 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 <code>|</code> characters replace transitions to and from subscript, as well as slashes <code>/</code> and parentheses <code>( )</code>.

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



====Template:mp====

==[[Template:minor planet]]==

{{template shortcut|mp}}

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

* 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>

*:: <syntaxhighlight lang="wikitext">{{minor planet|<leading numbers and letters>|<subscript number, if applicable>}}</syntaxhighlight>

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

*: For example, to create {{minor planet|2004 MN|4}}, use:

*:: <span style="color:#900">{{mono|<nowiki>{{mp|2004 MN|4}}</nowiki>}}</span>

*:: <syntaxhighlight lang="wikitext">{{minor planet|2004 MN|4}}</syntaxhighlight>



* To quickly format a minor planet known by ''a combination of a permanent catalogue number and a provisional designation'', insert the following pseudocode:

* 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>

*:: <syntaxhighlight lang="wikitext">{{minor planet|<catalogue number>|<provisional designation's leading numbers and letters>|<provisional designation's subscript number, if applicable>}}</syntaxhighlight>

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

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

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

*:: <syntaxhighlight lang="wikitext">{{minor planet|15788|1993 SB}}</syntaxhighlight>

*: Or, to create {{mp|15760|1992 QB|1}}, insert

*: Or, to create {{mp|15760|1992 QB|1}}, use:

*:: <span style="color:#900">{{mono|<nowiki>{{mp|15760|1992 QB|1}}</nowiki>}}</span>

*:: <syntaxhighlight lang="wikitext">{{minor planet|15760|1992 QB|1}}</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, {{mp|(15760) 1992 QB|1}} can also be created by inserting

*: 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, {{minor planet|(15760) 1992 QB|1}} can also be created by using:

*:: <span style="color:#900">{{mono|<nowiki>{{mp|(15760) 1992 QB|1}}</nowiki>}}</span>

*:: <syntaxhighlight lang="wikitext">{{minor planet|(15760) 1992 QB|1}}</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, insert the following pseudocode:

* 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>

*:: <syntaxhighlight lang="wikitext">{{minor planet|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.

*: 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 {{minor planet|S|2000|1998 WW|31|1}}, use:

*:: <span style="color:#900">{{mono|<nowiki>{{mp|S|2000|1998 WW|31|1}}</nowiki>}}</span>

*:: <syntaxhighlight lang="wikitext">{{minor planet|S|2000|1998 WW|31|1}}</syntaxhighlight>

*: Or, to create {{mp|S|2005|1994 XD|1}}, insert

*: Or, to create {{mp|S|2005|1994 XD|1}}, use:

*:: <span style="color:#900">{{mono|<nowiki>{{mp|S|2005|1994 XD|1}}</nowiki>}}</span>

*:: <syntaxhighlight lang="wikitext">{{minor planet|S|2005|1994 XD|1}}</syntaxhighlight>

*: Or, to create {{mp|S|2003|11264|1}}, insert

*: Or, to create {{mp|S|2003|11264|1}}, use:

*:: <span style="color:#900">{{mono|<nowiki>{{mp|S|2003|11264|1}}</nowiki>}}</span>

*:: <syntaxhighlight lang="wikitext">{{minor planet|S|2003|11264|1}}</syntaxhighlight>



====Template:mpl====

==[[Template:minor planet link]]==

{{template shortcut|mpl}}

Toinsertalink 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.

Tocreateawikilink 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 {{mpl|2009 YE|7}}, insert

For example, to create a wikilink to {{minor planet link|2009 YE|7}}, use:

::: <span style="color:#900">{{mono|<nowiki>{{mpl|2009 YE|7}}</nowiki>}}</span>

::: <syntaxhighlight lang="wikitext">{{minor planet link|2009 YE|7}}</syntaxhighlight>

Or, to create a wikilink to {{mpl|15760|1992 QB|1}}, insert

Or, to create a wikilink to {{minor planet link|15760|1992 QB|1}}, use:

::: <span style="color:#900">{{mono|<nowiki>{{mpl|15760|1992 QB|1}}</nowiki>}}</span>

::: <syntaxhighlight lang="wikitext">{{minor planet link|15760|1992 QB|1}}</syntaxhighlight>

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 inserting

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, {{minor planet link|(15760) 1992 QB|1}} can also be created by using:

::: <span style="color:#900">{{mono|<nowiki>{{mpl|(15760) 1992 QB|1}}</nowiki>}}</span>

::: <syntaxhighlight lang="wikitext">{{minor planet link|(15760) 1992 QB|1}}</syntaxhighlight>

Finally, to create a wikilink to {{mpl|S|2000|1998 WW|31|1}}, insert

Finally, to create a wikilink to {{minor planet link|S|2000|1998 WW|31|1}}, use:

::: <span style="color:#900">{{mono|<nowiki>{{mpl|S|2000|1998 WW|31|1}}</nowiki>}}</span>

::: <syntaxhighlight lang="wikitext">{{minor planet link|S|2000|1998 WW|31|1}}</syntaxhighlight>



====Template:mpl-====

==[[Template:minor planet link abridged]]==

{{template shortcut|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").

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]]

::: <span style="color:#009">{{mono|<nowiki>{{mpl-|<catalogue number>|<provisional designation's leading numbers and letters>|<subscript number, if applicable>}}</nowiki>}}</span>

::: <syntaxhighlight lang="wikitext">{{minor planet link abridged|<catalogue number>|<provisional designation's leading numbers and letters>|<subscript number, if applicable>}}</syntaxhighlight>

Toinsert a wikilink to {{mp|15760|1992 QB|1}} without showing the "(15760)" part (like so: {{mpl-|15760|1992 QB|1}}), insert:

Tocreate a wikilink to {{mp|15760|1992 QB|1}} without showing the "(15760)" part (like so: {{minor planet link abridged|15760|1992 QB|1}}), use:

::: <span style="color:#900">{{mono|<nowiki>{{mpl-|15760|1992 QB|1}}</nowiki>}}</span>

::: <syntaxhighlight lang="wikitext">{{minor planet link abridged|15760|1992 QB|1}}</syntaxhighlight>



====Template:mpf====

==[[Template:minor planet moon link]]==

{{template shortcut|mpm}}

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

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

* [[1854 Skvortsov]], provisional designation {{mpf|1968 UE|1}}, is a stony [[asteroid]] and relatively [[List of slow rotators (minor planets)|slow rotator]] from the middle region of the [[asteroid belt]], approximately 9 kilometers in diameter. It was first identified as {{mpf|1962 HC}} at [[Goethe Link Observatory]] in 1962 ({{MPC|1854}}).

::: <syntaxhighlight lang="wikitext">{{minor planet moon link|<leading numbers and letters>|<subscript number>|<trailing letters and numbers>}}</syntaxhighlight>

For example, to create {{minor planet moon link|S/2000 (1998 WW|31|) 1}}, use:

::: <syntaxhighlight lang="wikitext">{{minor planet moon link|S/2000 (1998 WW|31|) 1}}</syntaxhighlight>



==[[Template:minor planet moon link abridged]]==

==See also==

{{template shortcut|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:

::: <syntaxhighlight lang="wikitext">{{minor planet moon link abridged|<leading numbers and letters>|<subscript number>|<trailing letters and numbers>}}</syntaxhighlight>

For example, to create {{minor planet moon link abridged|S/2000 (1998 WW|31|) 1}}, use:

::: <syntaxhighlight lang="wikitext">{{minor planet moon link abridged|S/2000 (1998 WW|31|) 1}}</syntaxhighlight>


=See also=

{{Minor planet templates/See also}}

{{Minor planet templates/See also}}


<includeonly>{{Sandbox other||

[[Category:Minor planet formatting and function templates]]


}}</includeonly>


Latest revision as of 20:05, 26 December 2023

Usage[edit]

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[edit]

Template:minor planet link[edit]

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:

{{minor planet link|2009 YE|7}}

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

{{minor planet link|15760|1992 QB|1}}

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:

{{minor planet link|(15760) 1992 QB|1}}

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

{{minor planet link|S|2000|1998 WW|31|1}}

Template:minor planet link abridged[edit]

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

{{minor planet link abridged|<catalogue number>|<provisional designation's leading numbers and letters>|<subscript number, if applicable>}}

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

{{minor planet link abridged|15760|1992 QB|1}}

Template:minor planet moon link[edit]

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

{{minor planet moon link|<leading numbers and letters>|<subscript number>|<trailing letters and numbers>}}

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

{{minor planet moon link|S/2000 (1998 WW|31|) 1}}

Template:minor planet moon link abridged[edit]

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

{{minor planet moon link abridged|<leading numbers and letters>|<subscript number>|<trailing letters and numbers>}}

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

{{minor planet moon link abridged|S/2000 (1998 WW|31|) 1}}

See also[edit]

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=1191954723"

    Hidden category: 
    Template documentation pages
     



    This page was last edited on 26 December 2023, at 20:05 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki