Template:Collapsible/doc
From Dragon Mania Legends (DML) Wiki
< Template:CollapsibleDocumentation subpage |
---|
View this documentation's related template: Template:Collapsible |
Example(s)
- Toggle beside content
{{collapsible|Some text}}
gives:
Some text
- Toggle beside content, collapsed
{{collapsible|Some text|collapsed=n}}
gives:
Some text
- Toggle above content
{{collapsible|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.|clear}}
gives:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
- Toggle above content, collapsed
{{collapsible|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.|clear|collapsed=y}}
gives:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
- Custom toggle labels
{{collapsible|My content|clear|expandtext=Expand Meta (Sub) Collections|collapsetext=Collapse Meta (Sub) Collections}}
gives:
My content
See Also
- MediaWiki: Advanced Collapsible Elements, for reference on how this template was made.
- Formatting templates, for other formatting-related templates.
- Design templates, for other ready-use templates to use in layouts.
Wraps any content in a div to make its content collapsible, includes an "Expand/Collapse" toggle at the right of, or depending on parameters set--above, the content to be displayed.
Parameter | Description | Type | Status | |
---|---|---|---|---|
(content) 1 | 1 | Enter the content to wrap in a collapsible section. | String | required |
(Override, toggle position) 2 | 2 | To display the toggle on a line above the content, set the value to "clear".
| String | optional |
(Override) style | style | To add extra CSS styles to the toggle, enter valid CSS syntax. | String | optional |
(Override) collapsed | collapsed | To collapse by default, enter a value, otherwise leave blank.
| String | optional |
(Override) collapsetext | collapsetext | To override the text of the toggle for collapsing, enter a value, otherwise leave blank.
| String | optional |
(Override) expandtext | expandtext | To override the text of the toggle for collapsing, enter a value, otherwise leave blank.
| String | optional |