Search results
Results from the WOW.Com Content Network
An element with the mw-collapsible and innercollapse classes is collapsed by default if it is contained within an element with the outercollapse class; otherwise, it is uncollapsed by default. This is mainly useful for templates, which are often nested. Code entered. Output produced.
Template. : Collapsible list. This template is used on approximately 56,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. This template produces a collapsible list. It is possible to set ...
The following example uses one instance of {{Navbox with collapsible groups}} to get the first 10 collapsible groups, a nested instance to get the next 10, and another nested instance to get the last 6. See the code to learn how it works. It is fairly simple to extend this to as many groups/lists as you like:
list is a list of the section/group/etc names (the section [N]name / group [N]name / abbr [N] parameters) given in the template's code; default indicates which, if any, is to be shown expanded by default. If the template has only one collapsible group/section, {{Collapsible section option | name }} where name is that group/section's name, is ...
Produces an HTML list that can be collapsed Template parameters This template prefers block formatting of parameters. Parameter Description Type Status Title title The list's title (Always in view beside the list's [show/hide] link). String suggested Horizontal list hlist Use value 'on' or 'true' to produce a horizontal rather than vertical list Suggested values on true Example true Auto value ...
For example, {{collapse top|This is the title text|bg=#F0F2F5}} or {{collapse top|This is the title text|bg=LightGrey}} (HTML hex color codes require the leading #). |fc= Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See |bg=, above, for details on color options. |border=
The following example uses one instance of {{Navbox with collapsible groups}} to get the first 10 collapsible groups, a nested instance to get the next 10, and another nested instance to get the last 6. See the code to learn how it works. It is fairly simple to extend this to as many groups/lists as you like:
Parameters. The template has one optional unnamed parameter which is the title used for the collapsed section. {{collapsed infobox section begin|Heading}} If omitted, the template will use the default heading, " Further information ". The template has two optional named parameters for adjusting the style. To change the style for the section ...