Wiki source code of Panel Macro
Last modified by Frank Fock on 2025/07/01 22:30
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{velocity}} | ||
| 2 | $services.localization.render('rendering.macro.panel.description') | ||
| 3 | |||
| 4 | {{toc/}} | ||
| 5 | |||
| 6 | = Parameters = | ||
| 7 | |||
| 8 | |= Parameter |= Name |= Default value |= Description | ||
| 9 | | title | $services.localization.render('rendering.macro.panel.parameter.title.name') | - | $services.localization.render('rendering.macro.panel.parameter.title.description') | ||
| 10 | | footer | $services.localization.render('rendering.macro.panel.parameter.footer.name') | - | $services.localization.render('rendering.macro.panel.parameter.footer.description') | ||
| 11 | | bgColor | $services.localization.render('rendering.macro.panel.parameter.bgColor.name') | - | $services.localization.render('rendering.macro.panel.parameter.bgColor.description') | ||
| 12 | | contentTextColor | $services.localization.render('rendering.macro.panel.parameter.contentTextColor.name') | - | $services.localization.render('rendering.macro.panel.parameter.contentTextColor.description') | ||
| 13 | | width | $services.localization.render('rendering.macro.panel.parameter.width.name') | - | $services.localization.render('rendering.macro.panel.parameter.width.description') | ||
| 14 | | height | $services.localization.render('rendering.macro.panel.parameter.height.name') | - | $services.localization.render('rendering.macro.panel.parameter.height.description') | ||
| 15 | | classes | $services.localization.render('rendering.macro.panel.parameter.classes.name') | - | $services.localization.render('rendering.macro.panel.parameter.classes.description') | ||
| 16 | | borderColor | $services.localization.render('rendering.macro.panel.parameter.borderColor.name') |white| $services.localization.render('rendering.macro.panel.parameter.borderColor.description') | ||
| 17 | | borderStyle | $services.localization.render('rendering.macro.panel.parameter.borderStyle.name') |solid | $services.localization.render('rendering.macro.panel.parameter.borderStyle.description') | ||
| 18 | | borderWidth| $services.localization.render('rendering.macro.panel.parameter.borderWidth.name') |1px| $services.localization.render('rendering.macro.panel.parameter.borderWidth.description') | ||
| 19 | | borderRadius| $services.localization.render('rendering.macro.panel.parameter.borderRadius.name')|8px 8px 0px 0px or 8px 8px 8px 8px if the footer is present| $services.localization.render('rendering.macro.panel.parameter.borderRadius.description') | ||
| 20 | | titleBGColor | $services.localization.render('rendering.macro.panel.parameter.titleBGColor.name') | - | $services.localization.render('rendering.macro.panel.parameter.titleBGColor.description') | ||
| 21 | | titleColor | $services.localization.render('rendering.macro.panel.parameter.titleColor.name') | - | $services.localization.render('rendering.macro.panel.parameter.titleColor.description') | ||
| 22 | | footerBGColor | $services.localization.render('rendering.macro.panel.parameter.footerBGColor.name') | - | $services.localization.render('rendering.macro.panel.parameter.footerBGColor.description') | ||
| 23 | | footerColor | $services.localization.render('rendering.macro.panel.parameter.footerColor.name') | - | $services.localization.render('rendering.macro.panel.parameter.footerColor.description') | ||
| 24 | {{/velocity}} | ||
| 25 | |||
| 26 | = Examples = | ||
| 27 | |||
| 28 | == Simple panel == | ||
| 29 | |||
| 30 | {{panel}} | ||
| 31 | Content of the panel | ||
| 32 | {{/panel}} | ||
| 33 | |||
| 34 | == Simple panel with border and size == | ||
| 35 | |||
| 36 | {{panel borderColor="black" width="50%"}} | ||
| 37 | Content of the panel | ||
| 38 | {{/panel}} | ||
| 39 | |||
| 40 | == Panel with title, content, footer and colors == | ||
| 41 | |||
| 42 | {{panel bgColor="#dbf4ff" titleBGColor="#2a8af7" titleColor="#ffffff" width="50%" footerBGColor="#2a8af7" footerColor="#faafff" title="Title of the panel" footer="Footer of the panel"}} | ||
| 43 | Content of the panel | ||
| 44 | {{/panel}} | ||
| 45 | |||
| 46 | == Panel with title and colors and border == | ||
| 47 | |||
| 48 | {{panel borderColor="#2a8af7" bgColor="#dbf4ff" titleBGColor="#2a8af7" titleColor="#ffffff" title="Title of the panel"}} | ||
| 49 | Content of the panel | ||
| 50 | {{/panel}} | ||
| 51 | |||
| 52 | == Panel with bootstrap classes == | ||
| 53 | |||
| 54 | {{panel classes="col-sm-12" bgColor="#dbf4ff" titleBGColor="#2a8af7" titleColor="#ffffff" title="Title of the panel"}} | ||
| 55 | Content of the panel | ||
| 56 | {{/panel}} | ||
| 57 | |||
| 58 | {{panel bgColor="#dbf4ff" titleBGColor="#2a8af7" titleColor="#ffffff" classes="col-sm-6" title="Title of the panel"}} | ||
| 59 | Content of the panel | ||
| 60 | {{/panel}} | ||
| 61 | |||
| 62 | {{panel bgColor="#dbf4ff" titleBGColor="#2a8af7" titleColor="#ffffff" classes="col-sm-6" title="Title of the panel"}} | ||
| 63 | Content of the panel | ||
| 64 | {{/panel}} | ||
| 65 | |||
| 66 | |||
| 67 | == Confluence compatibility == | ||
| 68 | |||
| 69 | This macro supports all Atlassian Confluence parameters as of version 7.9. |