Macros

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Using macros helps you to extend the capabilities of your Confluence pages, allowing you to add extra functionality or include dynamic content. For example, use the Attachments macro to list files attached to a page, or use the Widget Connector macro to include things like a YouTube video or Twitter feed.

Add a Macro to your Page

To add a macro to a page:

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

Speeding up macro entry with autocomplete:

  • In the new editor - Type / and the beginning of an element (tool or things in the insert menu) to see a list of suggestions.
  • In the legacy editor - Type { and the beginning of the macro name to see a list of suggested macros.

Details are in Keyboard shortcuts, markdown, and 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.


Macro Parameters

Many macros have optional parameters you can use to control the macro's output.

With the Attachments Macro, for instance, you have two optional parameters allowing you to:

  • Specify the file formats of the attachments displayed
  • Choose whether or not you want old versions of the attachments displayed

Macro Placeholders

Macro placeholders are displayed in the editor where you have added a macro to the page.

When editing a page, you can:

  • Double-click a macro placeholder (or click the placeholder and choose Edit) to open the macro dialog window and edit the macro's parameters
  • Select a macro placeholder to cut, copy and paste the macro


Macros in the legacy editor only

Below is a list of the macros available in the legacy editor.

Click a macro name for details of the usage, including optional parameters and examples.

For alternate methods for accomplishing the goal of older macros, check out these suggestions.


Macros available in both editors

Below is a list of the macros available in both editors.

Click a macro name for details of the usage, including optional parameters and examples.


Macros from the Marketplace

Many more macros are available from the Atlassian Marketplace.

Last modified on Mar 9, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.