Wiki source code of Lozenges for Confluence
Last modified by John on 2020/11/11 17:10
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | |
2 | |||
3 | {{toc-local/}} | ||
4 | |||
5 | = Introduction = | ||
6 | |||
![]() |
18.1 | 7 | A lozenge is nothing but content wrapped in a box with background color. |
![]() |
1.1 | 8 | |
9 | = Macro = | ||
10 | |||
![]() |
18.1 | 11 | Simple text lozenge: |
![]() |
1.1 | 12 | |
13 | {{code}} | ||
![]() |
18.1 | 14 | ## Macro title: loz |
![]() |
4.1 | 15 | ## Macro has a body: No |
![]() |
1.1 | 16 | ## @param text:title=Text|string=string |
17 | ## @param color:title=Color|type=string|required=true|default=#0000ff | ||
18 | ## @param textcolor:title=Text Color|type=string|required=true|default=#ffffff | ||
19 | <span style="background-color:$paramcolor; color:$paramtextcolor; border-radius:3px; padding:0px 3px 2px 3px">$paramtext</span> | ||
20 | {{/code}} | ||
21 | |||
22 | Make sure to select "No macro body" in the "Macro Body Processing" section. | ||
23 | |||
24 | = Using It = | ||
25 | |||
![]() |
18.1 | 26 | Here are some lozenges: |
![]() |
1.1 | 27 | |
![]() |
4.1 | 28 | * |
29 | * | ||
30 | * | ||
31 | * | ||
![]() |
1.1 | 32 | |
![]() |
18.1 | 33 | {{loz color="red" textcolor="white" text="Danger"/}} |
![]() |
1.1 | 34 | |
![]() |
18.1 | 35 | \\ |