This documentation relates to an earlier version of Confluence.
View this page in the current documentation or visit the current documentation home.

Working with Macros

Skip to end of metadata
Go to start of metadata
All Versions
Table of Contents

Macros perform programmatic functions within a page and can be used to generate complex content structures or dynamic content.

Macros allow you to create markup or include dynamic content in a page that may not be possible using Confluence notation. For example, the Attachments macro will list a page's attachments in the page itself, so that readers do not have to visit the Attachments tab.

Generally speaking, a macro is simply a command wrapped inside curly braces {...}.

For instance, the Attachments Macro is written as:

Optional Parameters in Macros

For each macro, you can also have optional parameters that can often be combined to refine or control the macro's output.

With attachments, for instance, you have two optional parameters:

  • to specify the file formats of the attachments displayed.
  • to choose whether or not you want old versions of the attachments displayed.

These optional parameters are included within the curly braces, following a colon, like this:

When specifying more than one parameter within the same macro, the pipe symbol is used to separate one from the other, like this:

The macros currently available in Confluence are listed below. For each macro, all the optional parameters are also listed with examples of their usage.

RELATED TOPICS

Confluence Notation Guide Overview

Take me back to Help Home

Labels
  • None
  1. Jun 20, 2006

    To actually use a | in a parameter for a confluence macro, you need to use |

    also, I just noticed, to escape | you need to use &\#124; not \|

    And to create a double-slash, i.e. \\ you need to use \\, as confluence interprets \\ as a newline.



Log a request with our support team.



Raise an issue for our developers.



See answers from the community.



Tweet, blog and update our documentation.

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 2.5 Australia License.