Panel Macro

Last modified by Frank Fock on 2024/05/23 17:17

Panel macro to display XWiki content inside a panel.

Parameters

 Parameter  Name  Default value  Description
 title  Title  -  The title of the panel. If specified, this title will be displayed in its own title row.
 bgColor  Background color  -  If specified, sets the background color of the content of the panel. Colors can be specified as HTML color names or hexadecimal codes.
 contentTextColor  Content text color  -  If specified, sets the text color of the content of the panel. Colors can be specified as HTML color names or hexadecimal codes.
 width  Width  -  If specified, sets the width of the panel (300px or 50%).
 classes  CSS classes   -  If specified adds css classes to the panel.
 borderColor  Border color  white The color of the panel's border. Colors can be specified as HTML color names or hexadecimal codes.
 borderStyle  Border style solid  The style of the panel's border. Accepted values are solid, dashed and other valid CSS border styles.
 borderWidth Border width 1px The width of the panel's border expressed in pixels. Only values are accepted (e.g: 1)
 borderRadius Border radius8px 8px 0px 0px If specified, replaces the default border radius
 titleBGColor  Title background color  -  The background color of the title row of the panel. Colors can be specified as HTML color names or hexadecimal codes.
 titleColor  Title Text Color  -  The color of the text in the title row of the panel. Colors can be specified as HTML color names or hexadecimal codes.

Examples

Simple panel

Content of the panel

Simple panel with border and size

Content of the panel

Panel with title and colors

Title of the panel

Content of the panel

Panel with title and colors and border

Title of the panel

Content of the panel

Panel with bootstrap classes

Title of the panel

Content of the panel

Title of the panel

Content of the panel

Title of the panel

Content of the panel

Confluence compatibility

This macro supports all Atlassian Confluence parameters as of version 7.9.