The Expand macro displays an expandable/collapsible section of text on your page.
Here is an example:

This text is hidden until you expand the section.

On this page:

Using the Expand Macro

To insert the Expand macro into a page using the Macro Browser:

  1. In the Confluence editor, choose Insert > Other Macros.
  2. Find and select the required macro.

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. This will display the parameters of the macro in the Macro Browser.

Parameters

Parameters are options that you can set to control the content or format of the macro output.

Parameter

Default

Description

Title

Click here to expand...

Defines the text that appears next to the expand/collapse icon.

Notes

  • HTML exports do not show the expanded text. When you export the page to HTML, the text between the macro tags is not visible. Nothing happens when readers click the 'expand' icon. This issue is logged as CONF-21092. If you like, you can vote for the issue or 'watch' it to keep informed of progress.
  • Text is expanded in PDF exports. When you export the page to PDF, the text between the macro tags is expanded so that readers can see it on the PDF page.

Related Topics

Working with Macros

Take me back to the Confluence User's Guide.

  • No labels