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}}

Result:

A TitleAn Optional Sub-Title
Any xwiki content.

Parameters:

NameMandatoryDefault ValueDescription
titleYesNoneTitle of the box (to be displayed on top of the content)
subTitleNoNoneAn optional sub-title to further describe the content
iconNoxwiki:Macro.Box@mbox.pngA 22x22 pixel image to be displayed on top-left corner of the box (Eg. wiki:Page.Space@image.png)
widthNoautoWidth of the box, can be any css width specification (Eg. 75%)
colorNo#CCCC99Background 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.