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.


1 / 1


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

16971 by rjollos on 2017-11-18 09:56:16
FoldMacroProcessorMacro: Add metadata
16607 by rjollos on 2017-05-22 22:51:08
Strip trailing whitespace
14425 by psuter on 2015-02-14 15:30:47
FoldMacroProcessorMacro: Format title to oneliner. (fix #12190)


Author: psuter
Maintainer: Peter Suter

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