m →Usage: Move WL up
|
m →top: {{High-use}}
|
||
(10 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 & on multiple templates: [[Template: |
<!-- 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 ''' |
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: |
==[[Template:minor planet]]== |
||
{{template shortcut|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: |
||
*:: < |
*:: <syntaxhighlight lang="wikitext">{{minor planet|<leading numbers and letters>|<subscript number, if applicable>}}</syntaxhighlight> |
||
*: For example, to create {{ |
*: 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'', |
* To quickly format a minor planet known by ''a combination of a permanent catalogue number and a provisional designation'', use the following pseudocode: |
||
*:: < |
*:: <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}}, |
*: For example, to create {{mp|15788|1993 SB}}, use: |
||
*:: < |
*:: <syntaxhighlight lang="wikitext">{{minor planet|15788|1993 SB}}</syntaxhighlight> |
||
*: Or, to create {{mp|15760|1992 QB|1}}, |
*: Or, to create {{mp|15760|1992 QB|1}}, use: |
||
*:: < |
*:: <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, {{ |
*: 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: |
||
*:: < |
*:: <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, |
* 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: |
||
*:: < |
*:: <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 {{ |
*: For example, to create {{minor planet|S|2000|1998 WW|31|1}}, use: |
||
*:: < |
*:: <syntaxhighlight lang="wikitext">{{minor planet|S|2000|1998 WW|31|1}}</syntaxhighlight> |
||
*: Or, to create {{mp|S|2005|1994 XD|1}}, |
*: Or, to create {{mp|S|2005|1994 XD|1}}, use: |
||
*:: < |
*:: <syntaxhighlight lang="wikitext">{{minor planet|S|2005|1994 XD|1}}</syntaxhighlight> |
||
*: Or, to create {{mp|S|2003|11264|1}}, |
*: Or, to create {{mp|S|2003|11264|1}}, use: |
||
*:: < |
*:: <syntaxhighlight lang="wikitext">{{minor planet|S|2003|11264|1}}</syntaxhighlight> |
||
==Template: |
==[[Template:minor planet link]]== |
||
{{template shortcut|mpl}} |
|||
To |
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 {{ |
For example, to create a wikilink to {{minor planet link|2009 YE|7}}, use: |
||
::: < |
::: <syntaxhighlight lang="wikitext">{{minor planet link|2009 YE|7}}</syntaxhighlight> |
||
Or, to create a wikilink to {{ |
Or, to create a wikilink to {{minor planet link|15760|1992 QB|1}}, use: |
||
::: < |
::: <syntaxhighlight lang="wikitext">{{minor planet link|15760|1992 QB|1}}</syntaxhighlight> |
||
Note, as with ''Template: |
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: |
||
::: < |
::: <syntaxhighlight lang="wikitext">{{minor planet link|(15760) 1992 QB|1}}</syntaxhighlight> |
||
Finally, to create a wikilink to {{ |
Finally, to create a wikilink to {{minor planet link|S|2000|1998 WW|31|1}}, use: |
||
::: < |
::: <syntaxhighlight lang="wikitext">{{minor planet link|S|2000|1998 WW|31|1}}</syntaxhighlight> |
||
==Template: |
==[[Template:minor planet link abridged]]== |
||
{{template shortcut|mpl-}} |
|||
Sometimes, you may wish to |
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]] |
||
::: < |
::: <syntaxhighlight lang="wikitext">{{minor planet link abridged|<catalogue number>|<provisional designation's leading numbers and letters>|<subscript number, if applicable>}}</syntaxhighlight> |
||
To |
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: |
==[[Template:minor planet moon link]]== |
||
{{template shortcut|mpm}} |
|||
Produces a ''formatted'' version of a minor planet designation as in, for example: |
|||
⚫ | Tocreate 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: |
==[[Template:minor planet moon link abridged]]== |
||
{{template shortcut|mpm-}} |
|||
⚫ |
To |
||
⚫ | Toformat 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 {{ |
||
|
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> |
|||
==Template:mpm-== |
|||
⚫ |
To |
||
⚫ |
::: < |
||
For example, to create {{mpm-|S/2000 (1998 WW|31|) 1}}, insert: |
|||
::: <span style="color:#900">{{mono|<nowiki>{{mpm-|S/2000 (1998 WW|31|) 1}}</nowiki>}}</span> |
|||
=See also= |
=See also= |
||
{{Minor planet templates/See also}} |
{{Minor planet templates/See also}} |
||
<includeonly>{{Sandbox other|| |
|||
[[Category:Minor planet formatting and function templates]] |
[[Category:Minor planet formatting and function templates]] |
||
}}</includeonly> |
![]() | 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. |
![]() | This template is used on approximately 5,300 pages and changes may be widely noticed. Test changes in the template's /sandboxor/testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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 ( )
.
{{minor planet|<leading numbers and letters>|<subscript number, if applicable>}}
{{minor planet|2004 MN|4}}
{{minor planet|<catalogue number>|<provisional designation's leading numbers and letters>|<provisional designation's subscript number, if applicable>}}
{{minor planet|15788|1993 SB}}
{{minor planet|15760|1992 QB|1}}
{{minor planet|(15760) 1992 QB|1}}
{{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>}}
{{minor planet|S|2000|1998 WW|31|1}}
{{minor planet|S|2005|1994 XD|1}}
{{minor planet|S|2003|11264|1}}
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}}
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}}
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}}
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}}
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)