Template:Minor planets navigator/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Jump to: navigation, search
m (more ex's)
(dummy edit: testcases are at the standard Template:Minor planets navigator/testcases)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
ex 1 (no number):
{{Minor planets navigator/sandbox}}
ex 2 (no number):
{{Minor planets navigator/sandbox|(101954) 1999 RY33|(101956) 1999 RS36}}
ex 3 (number):
{{Minor planets navigator/sandbox|number=2001}}
ex 4 (number):
{{Minor planets navigator/sandbox|number=2001|(101954) 1999 RY33|(101956) 1999 RS36}}
ex 5 (number):
{{Minor planets navigator/sandbox|number=2001|(101954) 1999 RY33|(101956) 1999 RS36|state=collapsed}}
ex 6 (as on [[Asteroid]] (no number)):
{{Minor planets navigator/sandbox|PageName=[[Ceres (dwarf planet)|1 Ceres]]||2 Pallas|state=autocollapse}}
| name = Minor planets navigator
| name = Minor planets navigator
| title = [[List of minor planets#Main index|Minor planets navigator]]
| title = [[List of minor planets#Main index|Minor planets navigator]]
Line 25: Line 11:
|* [[{{{3}}}]]}}
|* [[{{{3}}}]]}}

Latest revision as of 20:58, 28 August 2016

Template documentation[view] [edit] [history] [purge]


Initial visibility

To set the 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 is not set, the template's initial visibility is taken from the |default= parameter in the template. For this template, that currently evaluates to expanded.


The first 2 unnamed arguments are, respectively, the previous and next successive minor planet page titles.

|number= is used to link the transcluded page's name to the appropriate List of minor planets sub-list with its corresponding anchor. It should contain the MP's number only, such as |number=55636.

|PageName= is used to customize the display of the transcluded page's name, such as |PageName={{mp|(55637) 2002 UX|25}}.

For example,

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

See also[edit]