Template:Collapsible list
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Uses Lua: |
This template produces a collapsible list. It is possible to set CSS styles for the "frame" (the div tags surrounding the list), for the list title, and for the list items. The template supports an unlimited number of list items.
Syntax[edit source]
{{Collapsible list | expand = | framestyle = collapsed | 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[edit source]
expand | Include as |expand=on , |expand=true , etc to set the list's default state to expanded rather than collapsed.
|
framestyle | Custom CSS styling applied the template overall (title and list). |
titlestyle | Custom CSS styling applied to the title. |
title | The list's title (always on view beside the list's [show/hide] link). |
liststyle | Custom CSS styling applied to the list (specifically, to the <ul>...</ul> tags delimiting the list).
|
hlist | Include as |hlist=on , |hlist=true , etc to produce a horizontal rather than vertical list.
|
bullets | Include 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[edit source]
{{Collapsible list | title = European Free Trade Association members | bullets = true | framestyle = collapsed | [[Iceland]] | [[Liechtenstein]] | [[Norway]] | [[Switzerland]] }}
European Free Trade Association members
- Iceland
- Liechtenstein
- Norway
- Switzerland
The above documentation is transcluded from Template:Collapsible list/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |