Parameters[編輯原始碼]

This template builds collapsible lists with titles.

Parameter Description Default Status
type list name empty required
body list content empty required
expand If set to any value besides 'no', list is uncollapsed by default no optional
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 lists' <div>.
empty optional

Examples[編輯原始碼]

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

List0
  • Item

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

Unknown.png Inline list0
  • Item

{{collapse list|expand=yes|type=Expanded list|body= * Item}}

Expanded list0
  • Item

{{collapse list|background-color:lightgreen|type=Green list|body= * Item}}

Green list0
  • Item