Please remember to make use of the DML Wiki Manual of Style and Code of Conduct during your stay.

 Actions

Template

Template:Collapsible

From Dragon Mania Legends (DML) Wiki

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this template's documentation. (About template documentation)

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

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.

Template parameters

ParameterDescriptionTypeStatus
(content) 11

Enter the content to wrap in a collapsible section.

Stringrequired
(Override, toggle position) 22

To display the toggle on a line above the content, set the value to "clear".

Example
clear
Stringoptional
(Override) stylestyle

To add extra CSS styles to the toggle, enter valid CSS syntax.

Stringoptional
(Override) collapsedcollapsed

To collapse by default, enter a value, otherwise leave blank.

Suggested values
n
Default
(blank = collapsed)
Example
n
Stringoptional
(Override) collapsetextcollapsetext

To override the text of the toggle for collapsing, enter a value, otherwise leave blank.

Default
Collapse
Example
Collapse Meta (Sub) Collections
Stringoptional
(Override) expandtextexpandtext

To override the text of the toggle for collapsing, enter a value, otherwise leave blank.

Default
Expand
Example
Expand Meta (Sub) Collections
Stringoptional


This Wiki is created by players for other players and is not maintained by, or affiliated with, the game maker (Gameloft).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.