Info, Tip, Note, and Warning Macros
The Info, Tip, Note, and Warning macros allow you to highlight information on a Confluence page. They create a coloured box surrounding your text, like this:
To add an Info, Tip, Note, or Warning Macro to a page:
- In the Confluence editor, choose Insert > Other Macros
- 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 Autocomplete for links, files, macros and mentions.
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
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 |
---|---|---|
Optional Title | none | The title of the box. If specified, the title text will be displayed in bold next to the icon. |
Show information/tip/Exclamation Mark/Warning Icon | true | If "false", the icon will not be displayed. |
Code examples
The following examples are provided for advanced users who want to inspect or edit the underlying markup for a Confluence page.
Macro name: info/tip/note/warning
Macro body: Accepts rich text.
Storage format example
The following example shows the info macro with all parameters and a body:
<ac:structured-macro ac:name="info">
<ac:parameter ac:name="icon">false</ac:parameter>
<ac:parameter ac:name="title">This is my title</ac:parameter>
<ac:rich-text-body>
<p>
<span>This is </span> <em>important</em> <span> information.</span>
</p>
</ac:rich-text-body>
</ac:structured-macro>
Wiki markup example
{info:title=This is my title|icon=false}
This is _important_ information.
{info}