From version < 25.1 >
edited by Andreea Popescu
on 2014/06/30 08:18
To version < 26.1 >
edited by Andreea Popescu
on 2014/06/30 08:20
< >
Change comment: There is no comment for this version

Summary

Details

ExtensionCode.ExtensionClass[0]
Description
... ... @@ -33,7 +33,7 @@
33 33  {{/mbox}}
34 34  {{/code}}
35 35  
36 -=== Result ===
36 +=== Screenshot ===
37 37  
38 38  {{image reference="mbox.png"/}}
39 39  
cogDraws styled boxes around wiki content
TypeXAR
Developed by

Asiri Rathnayake

Rating
Rate!
0 Votes
LicenseGNU Lesser General Public License 2.1

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

Wiki macros are only available for XE versions greater than 2.0M2

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

Parameters Definition

NameOptionalDefault ValueDescription
titleNoNoneTitle of the box (to be displayed on top of the content)
subTitleYesNoneAn optional sub-title to further describe the content
iconYesxwiki:[email protected]A 22x22 pixel image to be displayed on top-left corner of the box (Eg. wiki:[email protected])
widthYesautoWidth of the box, can be any css width specification (Eg. 75%)
colorYes#CCCC99Background 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}}

Result

Screenshot

mbox.png

Notes

Please refer to this blog post for more examples and information on customizing the MBox macro.

Get Connected