MBox Macro
Остання зміна 2026/01/15 12:29 автором Павло Заїченко
Macro Name
mbox
Description
This is a generic macro that allows a styled box to be drawn around wiki content.
Parameters
- title
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:space.page@image.ext 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="Sandbox.WebHome@XWikiLogo.png" color="lightblue"}} Any **xwiki** content. {{/mbox}} |
Results
Any xwiki content. |
Any xwiki content. |