Template:Main Page topics

From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]

Usage

Initial visibility

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

  • |state=collapsed: {{Main Page topics|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Main Page topics|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Main Page topics|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 autocollapse.

Purpose

Navbox for pages related to the Main Page of English Wikipedia, and for featured content.

See also

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Main_Page_topics&oldid=799365036"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/Template:Main_Page_topics
This page is based on the copyrighted Wikipedia article "Template:Main Page topics"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA