Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A lozenge is nothing but content wrapped in a box with background color. Below are macros for two kinds of content: text only, rendered content.

Warning

At the moment, rendered content cannot include newlines.

Macro

Simple text lozenge:

...

Make sure to select "No macro body" in the "Macro Body Processing" section.

Lozenge with rendered body:

Code Block
## Macro title: loz-body
## Macro has a body: Yes
## Body processing: Rendered
## @param color:title=Color|type=string|required=true|default=#0000ff
## @param textcolor:title=Text Color|type=string|required=true|default=#ffffff
<div style="display: inline-block; background-color:$paramcolor; color:$paramtextcolor; border-radius:3px; padding:0px 3px 2px 3px">$body</div>

Make sure to select "Rendered" in the "Macro Body Processing" section.

Using It

Here are some simple lozenges:

  • Loz
    textNew
  • Loz
    textUpdated
  • Loz
    coloryellow
    textcolorblack
    textWarning
  • Loz
    colorred
    textcolorwhite
    textDanger

Some lozenges with inline, rendered body:

Loz body

This is rendered text.

We can put 

Loz body

HOMEImage Removedicons

 too!