| File:Imbox notice.png | This is a documentation subpage for Template:Collapsible list. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
Syntax
{{Collapsible list
|framestyle = <!--(optional)-->
|title =
|titlestyle = <!--(optional)-->
|liststyle = <!--(optional)-->
|1 = <!--(First item in list)--->
|2 = <!--(Second item in list)-->
|3 = <!--(Third item in list)--->
|...
}}
- Default state
Specifying expand = true, or any non-blank value, will set the default state to expanded.
Examples
{{Collapsible list
|title=[[European Free Trade Association]] Members
|[[Iceland]]
|[[Liechtenstein]]
|[[Norway]]
|[[Switzerland]]}}
European Free Trade Association Members
- Iceland
- Liechtenstein
- Norway
- Switzerland
Example of a list without borders because it's within an infobox
In these examples, the fields leader_name2 and leader_name3 have been changed to use collapsible list.
|leader_title3 = MPPs |leader_name3 =
List of MPPs
- Marie Bountrogianni
- Andrea Horwath
- Judy Marsales
- Ted McMeekin
- Jennifer Mossop
|established_title = Incorporated |established_date = June 9, 1846 }}
|leader_title3 = [[Member of Provincial Parliament (Ontario)|MPPs]]
|leader_name3 =
{{Collapsible list
|framestyle=border:none; padding:0; <!--as above-->
|title=List of MPPs
|1=[[Marie Bountrogianni]] |2=[[Andrea Horwath]] |3=[[Judy Marsales]] |4=[[Ted McMeekin]] |5=[[Jennifer Mossop]]
}}
|established_title = [[Municipal corporation|Incorporated]]
|established_date = June 9, 1846
(...etc...)
}}