Add foldable sections


This macro is a simple way to add foldable sections in Trac wiki pages and tickets that the user can click to expand or collapse.

{{{#!Fold title="A title for the folded section" tag=h2
This section of the wiki page is folded up and can be expanded by clicking on the title.

This can contain any ''formatted'' **wiki** content, including macros and nested Fold sections.

The following parameters can be set:

  • title: The text in the folding header.
  • tag: The HTML element used for the title (Default: span)

See also: CollapsiblePlugin

Bugs/Feature Requests

Existing bugs and feature requests for FoldMacroProcessorMacro are here.

If you have any issues, create a new ticket.


4 / 4


Download the zipped source from here.


You can check out FoldMacroProcessorMacro from here using Subversion, or browse the source with Trac.


General instructions on installing Trac plugins can be found on the TracPlugins page.

Recent Changes

14425 by psuter on 2015-02-14 15:30:47
FoldMacroProcessorMacro: Format title to oneliner. (fix #12190)
13999 by psuter on 2014-07-06 08:53:42
FoldMacroProcessorMacro: Add macro parameter tag to switch the title's HTML tag type.
Thanks to Tobias Hommel.
(fix #11846)
13781 by psuter on 2014-03-19 18:38:06
FoldMacroProcessorMacro: Added license file (fix #9815)


Author: psuter
Maintainer: Peter Suter

Last modified 7 months ago Last modified on Sep 21, 2016, 7:41:04 PM