MBox Macro
Version 25.1 by Andreea Popescu on 2014/06/30 08:18
Draws styled boxes around wiki content |
Type | XAR |
Category | |
Developed by | |
Rating | |
License | GNU Lesser General Public License 2.1 |
Compatibility | Tested with XE 6.0.1 |
Table of contents
Description
This wiki macro allows drawing styled boxes around wiki content. Layout of these styled boxes are different from that of Box Macro generated boxes and the look and feel of these boxes can be centrally controlled by editing the associated style sheet extension attached to the wiki macro document. Also, MBox macro can be easily extended to create new sub macros for convenience.
Installation
You can install the MBox macro by downloading the XAR bundle and importing it to your wiki with programming rights. Note that if you are running an XWiki farm, the installation needs to happen on the main wiki.
Usage
{{mbox title="A Title"}}
Any **xwiki** content.
{{/mbox}}
Any **xwiki** content.
{{/mbox}}
Parameters Definition
Name | Optional | Default Value | Description |
---|---|---|---|
title | No | None | Title of the box (to be displayed on top of the content) |
subTitle | Yes | None | An optional sub-title to further describe the content |
icon | Yes | xwiki:[email protected] | A 22x22 pixel image to be displayed on top-left corner of the box (Eg. wiki:[email protected]) |
width | Yes | auto | Width of the box, can be any css width specification (Eg. 75%) |
color | Yes | #CCCC99 | Background color of the box, can be any css color specification (Eg. red) |
Example
{{mbox title="A Title" subTitle="An Optional **Sub-Title**" width="75%"}}
Any **xwiki** content.
{{/mbox}}
Any **xwiki** content.
{{/mbox}}
Result
Notes
Please refer to this blog post for more examples and information on customizing the MBox macro.