MBox Macro
Last modified by Opinca Mihail on 2026/10/22 20:38
Prerequisites:
None.
Installation:
Download this xar bundle and import it into your main xwiki with programming rights.
Example Usage:
{{mbox title="A Title" subTitle="An Optional **Sub-Title**"}}
Any **xwiki** content.
{{/mbox}}
Any **xwiki** content.
{{/mbox}}
Result:
A TitleAn Optional Sub-Title
Any xwiki content.
Parameters:
| Name | Mandatory | Default Value | Description |
|---|---|---|---|
| title | Yes | None | Title of the box (to be displayed on top of the content) |
| subTitle | No | None | An optional sub-title to further describe the content |
| icon | No | xwiki:Macro.Box@mbox.png | A 22x22 pixel image to be displayed on top-left corner of the box (Eg. wiki:Page.Space@image.png) |
| width | No | auto | Width of the box, can be any css width specification (Eg. 75%) |
| color | No | #CCCC99 | Background color of the box, can be any css color specification (Eg. red) |
Help:
Visit MBox Macro page for the latest mbox macro version / documentation. Also check-out my macro collection for several other macros. You can email me at asiri dot rathnayake at gmail dot com if you need further assistance.