The CollapsiblePlugin allows one to embed foldable structures in wiki pages, in the style of the trac ticket attachments foldable structure. The plugin utilizes two macros: one to denote the start of a foldable structure, and one to denote the end of said structure. Foldable text supports WikiFormatting and nested folds, so long as spacing is accomplished by the former.
Github version of plugin: https://github.com/manoyes/collapsibleplugin
Note: There exists a 0.11 branch, but this macro does not work with 0.11. See #8942 for more details.
If you have any issues, create a new ticket.
Download the zipped source from here.
For structures with a title:
[[CollapsibleStart(Title-of-Structure)]] WikiFormatted text inside foldable structure. [[CollapsibleEnd]]
For structures without a title:
[[CollapsibleStart]] WikiFormatted text inside foldable structure. [[CollapsibleEnd]]