Permanently protected template

Template:Minor planets navigator

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Usage

Place this template in the footer of any numbered minor planet article and don't forget to add parameter |number= to enable additional features (see example below). When used in articles other than numbered minor planets (such as in Asteroid or Minor planet), it is best to start the navigator from the start, that is:

  • {{Minor planets navigator|PageName=[[Ceres (dwarf planet)|1 Ceres]]||2 Pallas|state=autocollapse}}

Arguments

  • | the first unnamed argument is for the designation of the preceding minor planet
  • |number= contains the object's number (current article). It will produce a link to the corresponding entry in the catalog and categorize the article.
  • |PageName= allows to format/override the displayed title (current article), analogous to DISPLAYTITLE.
  • | the second unnamed argument is for the designation of the subsequent minor planet

Example

For article (55637) 2002 UX25, which has the catalog number 55637:


{{Minor planets navigator |(55636) 2002 TX300 |number=55637| PageName={{mp|(55637) 2002 UX|25}} |(55638) 2002 VE95}}

|-------------------------|-------------------|------------|------------------------------------|----------------- -|
|                         | preceding article | article-num|     article-title formatted        |succeeding article |
|-------------------------|-------------------|------------|------------------------------------|----------------- -|
This will produce

The four parameters are set as follows:

  • | (55636) 2002 TX300 — the designation of the preceding minor planet
  • |number= 55637 — current article; number only
  • |PageName= {{mp|(55637) 2002 UX|25}} — current article; formatted version, numeric indices are then displayed in subscript
  • | (55638) 2002 VE95 — the designation of the succeeding minor planet

The PageName parameter can be left empty for minor planets that are named or unnamed, but with no subscript number. In the resulting output, the article itself (central item) will link to the corresponding entry in the list of minor planets. The first and last item of the triplet will link directly to the article.

Category

Using {{Minor planets navigator}} with a number parameter automatically adds the article to Category:Minor planet object articles (numbered). As of January 2019, there are 3,087 articles in this category.

Collapsible options

Initial visibility: currently defaults to expanded

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Minor planets navigator|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Minor planets navigator|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Minor planets navigator|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to expanded.

See also