Let's write a simple macro that creates a red box (using an existing Confluence style) around some text. This may be useful for writing about error conditions, for example. For full details about creating a user macro, see the guide to writing user macros. Defining the 'Error' user macroTo create the 'Error' user macro:  - Choose User Macros in the left-hand panel.
- Choose Create a User Macro at the bottom of the list of macros.
- Enter the macro attributes as follows:
- Macro Name:
error - Visibility:
Visible to all users in the Macro Browser - Macro Title:
Error - Description:
Displays a red box around some text - Categories:
Confluence Content - Icon URL: You can leave this field empty.
- Documentation URL: You can leave this field empty.
- Macro Body Processing:
Rendered
Template: ## @noparams
<div class="error">$body</div> |
- Choose Save.
|