Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

toc-local

Introduction

A lozenge is nothing but content wrapped in a box with background color.

Macro

Simple text lozenge:

Code Block
## Macro title: loz
## Macro has a body: No
## @param text:title=Text|string=string
## @param color:title=Color|type=string|required=true|default=#0000ff
## @param textcolor:title=Text Color|type=string|required=true|default=#ffffff
<span style="background-color:$paramcolor; color:$paramtextcolor; border-radius:3px; padding:0px 3px 2px 3px">$paramtext</span>

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

Using It

Here are some lozenges:

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