Difference between revisions of "Template:Asteroid table sorting/doc"
Jump to navigation
Jump to search
blackwiki>WDGraham (doc page) |
blackwiki>WDGraham (+) |
||
| Line 5: | Line 5: | ||
== Usage == | == Usage == | ||
*<nowiki>{{</nowiki>ats|''[Minor Planet Number]''|''[Name]''|''[Format (optional)]''}} | *<nowiki>{{</nowiki>ats|''[Minor Planet Number]''|''[Name]''|''[Format (optional)]''}} | ||
| + | *<nowiki>{{</nowiki>ats/p|''[Minor Planet Number]''|''[Year]''|''Letter designation''|''Subscript''|''[Format (optional)]''}} | ||
| + | |||
Four formats are supported: | Four formats are supported: | ||
# ''(number) name'' - <nowiki>{{ats|2110|Moore-Sitterly|1}}</nowiki> produces {{ats|2110|Moore-Sitterly|1}} (default) | # ''(number) name'' - <nowiki>{{ats|2110|Moore-Sitterly|1}}</nowiki> produces {{ats|2110|Moore-Sitterly|1}} (default) | ||
| Line 10: | Line 12: | ||
# ''name'' - <nowiki>{{ats|10484|Hecht|3}}</nowiki> produces {{ats|10484|Hecht|3}} | # ''name'' - <nowiki>{{ats|10484|Hecht|3}}</nowiki> produces {{ats|10484|Hecht|3}} | ||
# ''number'' - <nowiki>{{ats|15107|Toepperwein|4}}</nowiki> produces {{ats|15107|Toepperwein|4}} | # ''number'' - <nowiki>{{ats|15107|Toepperwein|4}}</nowiki> produces {{ats|15107|Toepperwein|4}} | ||
| + | |||
| + | For minor planets with provisional designations, use: | ||
| + | # <nowiki>{{ats/p|35144|1992|YE|1|1}}</nowiki> produces {{ats/p|35144|1992|YE|1|1}} | ||
| + | # <nowiki>{{ats/p|35144|1992|YE|1|5}}</nowiki> produces {{ats/p|35144|1992|YE|1|5}} | ||
| + | :Formats 5, 6 and 7 produce the same output as 1, 2 and 3, but without the subscript | ||
<includeonly> | <includeonly> | ||
Revision as of 17:02, 18 April 2013
| This is a documentation subpage for Template:Asteroid table sorting. It contains usage information, categories and other content that is not part of the original template page. |
This template simplifies the inclusion of asteroids and minor planets in sortable tables. The template adds a sort key, and displays the asteroid name and/or number in a specified format.
Usage
- {{ats|[Minor Planet Number]|[Name]|[Format (optional)]}}
- {{ats/p|[Minor Planet Number]|[Year]|Letter designation|Subscript|[Format (optional)]}}
Four formats are supported:
- (number) name - {{ats|2110|Moore-Sitterly|1}} produces (2110) Moore-Sitterly (default)
- number name- {{ats|4765|Wasserburg|2}} produces 4765 Wasserburg
- name - {{ats|10484|Hecht|3}} produces Hecht
- number - {{ats|15107|Toepperwein|4}} produces 15107
For minor planets with provisional designations, use:
- {{ats/p|35144|1992|YE|1|1}} produces (35144) 1992 YE1
- {{ats/p|35144|1992|YE|1|5}} produces (35144) 1992 YE1
- Formats 5, 6 and 7 produce the same output as 1, 2 and 3, but without the subscript