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:
|
|
Using the 'Error' macro on a page
To add the macro to a page, edit the page and choose Insert > Other Macros and find the 'Error' macro. (Or use autocomplete: start typing '{err' in the editor, and select the 'Error' macro from the list of suggestions that appears.)
Your page will display an error box, like this:
(Write your error message here.)
at top right of the screen, then choose Confluence Admin.