Parameters
This template builds collapsible lists with titles.
Parameter | Description | Default | Status |
---|---|---|---|
1 | list name | empty | required |
2 | list content | empty | required |
style |
|
empty | optional |
Old style
For backwards compatibility, these parameters remain valid. If parameter 1 is set to "inline", the parameter type must be used for the list name.
Parameter | Description | Default | Status |
---|---|---|---|
type | list name | empty | required |
body | list content | empty | required |
1 |
|
empty | optional |
Examples
{{collapse list|type=List|body= * Item}}
List
- Item
{{collapse list|inline|type={{icon|unknown}} Inline list|body= * Item}}

- Item
{{collapse list|background-color:lightgreen; border:solid;|type=Green, bordered list|body= * Item}}
Green, bordered list
- Item
Limitations
This template cannot be used as part of lists as it breaks the collapsing effect.
- List
- Item
- Item 2
- Item 3
It can also not be used inline with a paragraph unless the whole paragraph is wrapped with <span>
and the inline effect is applied, but even then the expand effect will break the flow of the paragraph.
Example text including
List
- Item
- Item 2
- Item 3
text continues after
Example text includinglist
text continues after
- Item
- Item 2
- Item 3