Wiki source code of Lozenges for Confluence
Last modified by John on 2020/11/11 17:10
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | |||
2 | |||
3 | {{toc-local/}} | ||
4 | |||
5 | = Introduction = | ||
6 | |||
7 | A lozenge is nothing but content wrapped in a box with background color. | ||
8 | |||
9 | = Macro = | ||
10 | |||
11 | Simple text lozenge: | ||
12 | |||
13 | {{code}} | ||
14 | ## Macro title: loz | ||
15 | ## Macro has a body: No | ||
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 | |||
26 | Here are some lozenges: | ||
27 | |||
28 | * | ||
29 | * | ||
30 | * | ||
31 | * | ||
32 | |||
33 | {{loz color="red" textcolor="white" text="Danger"/}} | ||
34 | |||
35 | \\ |