Macros
Last modified by Lucas Charpentier on 2026/09/22 16:36
Content
Explanation
A macro is a named call you write in wiki syntax, which XWiki replaces by what the macro produces when the page is displayed. Most macros take parameters, and many also take a content:
{{macroName parameter="value"}}
The content of the macro.
{{/macroName}}You do not have to type a macro to use one: the editors list the macros installed on your wiki and ask you for the parameters, as Insert a Macro with the BlockNote Editor describes.
The pages of this topic document the macros that lay content out on a page, one macro per page, with their parameters and examples:
- "box" Macro, a frame around a piece of content, with an optional title and image
- "info" Macro, a box carrying an information icon, for a remark beside the text
- "success" Macro, a box carrying a success icon, for an operation that worked
- "warning" Macro, a box carrying a warning icon, for a caution the reader should not miss
- "error" Macro, a box carrying an error icon, for a failure or a forbidden action
- "display" Macro, another page shown inside this one
A macro that belongs to a feature is documented in that feature's topic instead, such as the "displayIcon" macro under Icons.
More
To find more about the current topic, you can search or use the table below and filter the columns to narrow your choices.