Template:Collapse list

Parameters

This template builds collapsible lists with titles.

Parameter Description Default Status
1 list name empty required
2 list content empty required
style
  • If set to 'inline', the [Expand] tag is left-aligned instead of right-aligned.
  • If set to anything else, inserts it into the style tag for the list's <div>.
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
  • If set to 'inline', the [Expand] tag is left-aligned instead of right-aligned.
  • If set to anything else, inserts it into the style tag for the list's <div>.
empty optional

Examples

{{collapse list|type=List|body= * Item}}

List 
  • Item

{{collapse list|inline|type={{icon|unknown}} Inline list|body= * Item}}

Unknown Inline list 
  • 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 including
list 
  • Item
  • Item 2
    • Item 3
text continues after