Confluence 5.7 has reached end of life
Check out the [latest version] of the documentation
The Expand macro displays an expandable/collapsible section of text on your page.
Here is an example:
To insert the Expand macro into a page using the macro browser:
Speeding up macro entry with autocomplete: Type { and the beginning of the macro name, to see a list of suggested macros. Details are in Using Autocomplete. To edit an existing macro: Click the macro placeholder and choose Edit. A macro dialog window will open, where you can edit the parameters of the macro.
Parameters are options that you can set to control the content or format of the macro output. Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets (example
).
Parameter | Default | Description |
---|---|---|
Title | Click here to expand... | Defines the text that appears next to the expand/collapse icon. |
The following examples are provided for advanced users who want to inspect or edit the underlying markup for a Confluence page.
Macro name: expand
Macro body: Accepts rich text.
<ac:structured-macro ac:name="expand"> <ac:parameter ac:name="title">Expand me...</ac:parameter> <ac:rich-text-body> <p>This text is hidden until you expand the section.</p> </ac:rich-text-body> </ac:structured-macro>
{expand:This is my message} This text is _hidden_ until you expand it. {expand}