Wiki source code of Panel Macro
                  Version 1.1 by Frank Fock on 2024/02/07 18:16
              
      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 | | bgColor | $services.localization.render('rendering.macro.panel.parameter.bgColor.name') | - | $services.localization.render('rendering.macro.panel.parameter.bgColor.description') | ||
| 11 | | contentTextColor | $services.localization.render('rendering.macro.panel.parameter.contentTextColor.name') | - | $services.localization.render('rendering.macro.panel.parameter.contentTextColor.description') | ||
| 12 | | width | $services.localization.render('rendering.macro.panel.parameter.width.name') | - | $services.localization.render('rendering.macro.panel.parameter.width.description') | ||
| 13 | | classes | $services.localization.render('rendering.macro.panel.parameter.classes.name') | - | $services.localization.render('rendering.macro.panel.parameter.classes.description') | ||
| 14 | | borderColor | $services.localization.render('rendering.macro.panel.parameter.borderColor.name') |white| $services.localization.render('rendering.macro.panel.parameter.borderColor.description') | ||
| 15 | | borderStyle | $services.localization.render('rendering.macro.panel.parameter.borderStyle.name') |solid | $services.localization.render('rendering.macro.panel.parameter.borderStyle.description') | ||
| 16 | | borderWidth| $services.localization.render('rendering.macro.panel.parameter.borderWidth.name') |1px| $services.localization.render('rendering.macro.panel.parameter.borderWidth.description') | ||
| 17 | | borderRadius| $services.localization.render('rendering.macro.panel.parameter.borderRadius.name')|8px 8px 0px 0px| $services.localization.render('rendering.macro.panel.parameter.borderRadius.description') | ||
| 18 | | titleBGColor | $services.localization.render('rendering.macro.panel.parameter.titleBGColor.name') | - | $services.localization.render('rendering.macro.panel.parameter.titleBGColor.description') | ||
| 19 | | titleColor | $services.localization.render('rendering.macro.panel.parameter.titleColor.name') | - | $services.localization.render('rendering.macro.panel.parameter.titleColor.description') | ||
| 20 | {{/velocity}} | ||
| 21 | |||
| 22 | = Examples = | ||
| 23 | |||
| 24 | == Simple panel == | ||
| 25 | |||
| 26 | {{panel}} | ||
| 27 | Content of the panel | ||
| 28 | {{/panel}} | ||
| 29 | |||
| 30 | == Simple panel with border and size == | ||
| 31 | |||
| 32 | {{panel borderColor="black" width="50%"}} | ||
| 33 | Content of the panel | ||
| 34 | {{/panel}} | ||
| 35 | |||
| 36 | == Panel with title and colors == | ||
| 37 | |||
| 38 | {{panel bgColor="#dbf4ff" titleBGColor="#2a8af7" titleColor="#ffffff" width="50%" title="Title of the panel"}} | ||
| 39 | Content of the panel | ||
| 40 | {{/panel}} | ||
| 41 | |||
| 42 | == Panel with title and colors and border == | ||
| 43 | |||
| 44 | {{panel bgColor="#dbf4ff" borderColor="#2a8af7" titleBGColor="#2a8af7" titleColor="#ffffff" title="Title of the panel"}} | ||
| 45 | Content of the panel | ||
| 46 | {{/panel}} | ||
| 47 | |||
| 48 | == Panel with bootstrap classes == | ||
| 49 | |||
| 50 | {{panel classes="col-sm-12" bgColor="#dbf4ff" titleBGColor="#2a8af7" titleColor="#ffffff" title="Title of the panel"}} | ||
| 51 | Content of the panel | ||
| 52 | {{/panel}} | ||
| 53 | |||
| 54 | {{panel classes="col-sm-6" bgColor="#dbf4ff" titleBGColor="#2a8af7" titleColor="#ffffff" title="Title of the panel"}} | ||
| 55 | Content of the panel | ||
| 56 | {{/panel}} | ||
| 57 | |||
| 58 | {{panel classes="col-sm-6" bgColor="#dbf4ff" titleBGColor="#2a8af7" titleColor="#ffffff" title="Title of the panel"}} | ||
| 59 | Content of the panel | ||
| 60 | {{/panel}} | ||
| 61 | |||
| 62 | |||
| 63 | == Confluence compatibility == | ||
| 64 | |||
| 65 | This macro supports all Atlassian Confluence parameters as of version 7.9. | 
 
  