Macro Name

mbox

Description

This is a generic macro that allows a styled box to be drawn around wiki content.

Parameters

title (required)

A title for the box.

subTitle

An optional subtitle.

icon

An 22x22 pixel icon to be displayed on top-left corner of the box. Icon reference should be of the form wiki:[email protected] or icon:iconname. A default cog icon is used when none is provided.

width

Width of the box, can be any css length specification (75%, 100px, 3em, ...).

color

Background color of the box, can be any css color specification (red, #1A2B6E, ...).

Exemples

Code

{{mbox title="A Title" subTitle="An Optional **Sub-Title**"}}
Any **xwiki** content.
{{/mbox}}
{{mbox title="A Title" icon="[email protected]" color="lightblue"}}
Any **xwiki** content.
{{/mbox}}

Results

mbox.png A TitleAn Optional Sub-Title

Any xwiki content.

XWikiLogo.png A Title

Any xwiki content.

Tags:
Created by Vishal E on 2009/10/04 05:21