Wiki source code of MBox Macro

Last modified by Opinca Mihail on 2026/10/22 20:38

Show last authors
1 **Prerequisites:**
2
3 None.
4
5 **Installation:**
6
7 Download [[this xar bundle>>http://www.rathnayake.org/xwiki/bin/download/Macro/MBox/Macro.MBox.xar]] and import it into your **main xwiki** with programming rights.
8
9 **Example Usage:**
10
11 {{code}}
12 {{mbox title="A Title" subTitle="An Optional **Sub-Title**"}}
13 Any **xwiki** content.
14 {{/mbox}}
15 {{/code}}
16
17 **Result:**
18
19 {{mbox title="A Title" subTitle="An Optional **Sub-Title**"}}
20 Any **xwiki** content.
21 {{/mbox}}
22
23 **Parameters:**
24
25 |=Name|=Mandatory|=Default Value|=Description
26 |**##title##**|Yes|None|Title of the box (to be displayed on top of the content)
27 |**##subTitle##**|No|None|An optional sub-title to further describe the content
28 |**##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##**)
29 |**##width##**|No|**##auto##**|Width of the box, can be any css width specification (Eg. **##75%##**)
30 |**##color##**|No|**##~#CCCC99##**|Background color of the box, can be any css color specification (Eg. **##red##**)
31
32 **Help:**
33
34 Visit [[MBox Macro>>http://www.rathnayake.org/xwiki/bin/view/Macro/MBox]] page for the latest mbox macro version / documentation. Also check-out my [[macro collection>>http://www.rathnayake.org/xwiki/bin/view/Macro/]] for several other macros. You can email me at **asiri dot rathnayake at gmail dot com** if you need further assistance.