The Lozenge macro creates a lozenge button with optional link.This macro creates a professional lozenge effect that's ideal for creating professional looking buttons, or simply highlighting important information.
The Lozenge macro is designed for small amounts of content (although the width can be changed to accommodate more content if required). This is to ensure that the content contained within the lozenge is concise, and in turn leads to an improved user experience.
Click Insert > Other Macros.
Select the Lozenge macro from the provided list.
Complete the desired fields.
|Page or URL|
If specified, clicking the lozenge will go to the specified link.
|Icon||The url for an image (no larger than 48x48 pixels) or even text if desired.||string||none|
|Title||The title of the lozenge, also used as the tooltip for links.||string||none|
|Color||Specifies the color of the left portion of the lozenge.||single select||none|
Defines which arrow to use on the left portion of the lozenge:
|Width||The width of the entire lozenge in px or %. Specify auto to make the lozenge automatically stretch to fit its contents.||string||none|
|Use the table based lozenge||Compatibility setting for use if the lozenge does not display correctly in older browsers.||checkbox||unselected|
The macro will then appear on the page.
The body of the macro should contain the summary text. This can, for example, be used to place excerpts in to the lozenge using the excerpt-include macro.
If the macro parameter "Page or URL" is supplied with a value that does not exist, when clicking the lozenge the first time Confluence will create a new child page with the value supplied in the "Page or URL" parameter. On subsequent attempts Confluence will navigate to the created page.
There are 9 colors to choose from for the left side of the lozenge, and two colors for the arrow with the option to show no arrow.
Create a simple lozenge as follows:
The icons are not included in the add-on, you have to supply them.
The icon should ideally be 32x32 or 48x48 pixels. If you are using the Builder theme, you can use PNG images with alpha transparency.
You can also use icons that are attached to other pages (or even external icons by specifying their URL).
Alternatively, you can use text instead of an image:
Add a blue arrow to the lozenge as follows:
When you add a link to the lozenge, it will automatically get a blue arrow:
Always specify a title for linked lozenges.
You can choose a green arrow as follows:
Or no arrow at all:
Choose the lozenge colors by editing the macro (see parameter table above)
The section macro and column macro are ideal for putting lozenges side by side as shown above. The lozenges default width is designed to allow two lozenges to be displayed side by side within the default Builder page width of 750px which fits nicely on an 800x600 screen.
You can also set a percentage width as follows:
Or you can set the width in pixels as follows:
I've put in the name of an icon as shown in the example, but it's not appearing and I get an error message.
You need to attach the icon to your page or provide a URL to an icon elsewhere - this macro doesn't contain the icons.