Template:Collapsible list

Template documentation[view · edit · history · purge]
This documentation is transcluded from Template:Collapsible list/doc.
Category:Main message boxesCategory:Lua-based templates

This template produces a collapsible list. It is possible to set CSS styles for the "frame" (the <div>...</div> tags surrounding the list), for the list title, and for the list items. The template supports an unlimited number of list items.

Syntax

{{Collapsible list
 | expand = 
 | framestyle = 
 | titlestyle = 
 | title = 
 | liststyle = 
 | hlist = 
 | bullets = 
 | <!-- 1 = -->    <!--(First item in list; the "1 =" is usually not required)-->
 | <!-- 2 = -->    <!--(Second item in list; ditto)-->
 | <!-- 3 = -->    <!--(Third item in list; etc.)-->
 | <!-- etc -->
}}

Parameters

expandInclude as |expand=on, |expand=true, etc to set the list's default state to expanded rather than collapsed.
framestyleCustom CSS styling applied the template overall (title and list).
titlestyleCustom CSS styling applied to the title.
titleThe list's title (always on view beside the list's [show/hide] link).
liststyleCustom CSS styling applied to the list (specifically, to the <ul>...</ul> tags delimiting the list).
hlistInclude as |hlist=on, |hlist=true, etc to produce a horizontal rather than vertical list.
bulletsInclude as |bullets=on, |bullets=true, etc to place a bullet point before each list item.
Unnamed parameters
(first, second, third...)
The list items (in the order in which they will appear). If none are supplied, the template outputs nothing.

Examples

{{Collapsible list 
 | title = [[:wikipedia:European Free Trade Association|]] members 
 | [[Iceland]] 
 | [[Liechtenstein]] 
 | [[Norway]] 
 | [[Switzerland]]
}}
Category:Collapsible templates
Category:Collapsible templates Category:Lua-based templates Category:Main message boxes