You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 34 Next »

Content Formatting Macros

A set of macros that allow easy formatting of Wiki content.

This plugin includes the following macros:
  • lozenge - an attractive, customisable lozenge button
  • bgcolor - set content background color
  • highlight - highlight background of bits of content
  • Symbols - insert a service, trade, or registered trademark.
  • center - center content on screen (including tables, etc)
  • strike - a graphical strikeout effect
  • clickable - hyperlinks all contained content to a page or URL
  • roundrect - an attractive customisable round rectangle
  • align - allows you to left/right/center and justify-align your content
  • iframe - allows you to create iframes
  • rollover - allows you to create rollover effects
Unable to render content due to system error: java.lang.ClassCastException: class com.adaptavist.confluence.contentformatting.LozengeMacro cannot be cast to class com.atlassian.renderer.v2.macro.Macro (com.adaptavist.confluence.contentformatting.LozengeMacro is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @bf329ba; com.atlassian.renderer.v2.macro.Macro is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @9345ce8)

Sets the background color for a section of content. You can specify a background color using color names or hexadecimal color codes.

The Code :

Color names:

{bgcolor:red}red{bgcolor}
{bgcolor:yellow}yellow{bgcolor}
{bgcolor:green}green (default){bgcolor}
{bgcolor:cyan}cyan{bgcolor}
{bgcolor:blue}blue{bgcolor}
{bgcolor:purple}purple{bgcolor}

Hexadecimal:

{bgcolor:#E47833}mandarin orange{bgcolor}
{bgcolor:#802A2A}brown{bgcolor}
{bgcolor:#F08080}light coral{bgcolor}
{bgcolor:#800000}maroon{bgcolor}
{bgcolor:#D44942}chili{bgcolor}
{bgcolor:#CDB7B5}misty rose{bgcolor}

What you will get :

Color names:

Unknown macro: {bgcolor}

red

Unknown macro: {bgcolor}

yellow

Unknown macro: {bgcolor}

green

Unknown macro: {bgcolor}

cyan

Unknown macro: {bgcolor}

blue

Unknown macro: {bgcolor}

purple

Hexadecimal:

Unknown macro: {bgcolor}

mandarin orange

Unknown macro: {bgcolor}

brown

Unknown macro: {bgcolor}

light coral

Unknown macro: {bgcolor}

maroon

Unknown macro: {bgcolor}

chili

Unknown macro: {bgcolor}

misty rose

Parameters

{bgcolor:myColor}your content{bgcolor}

Name

Required?

Default

Description

default

green

The "myColor" default parameter defines the background colour for the content contained within the macro and can be either a common colour name (supported by most browsers) or a hexadecimal colour code (supported by all browsers).

Allows you to highlight a portion of content. You can specify a color using color names or hexadecimal color codes.

The Code :

{highlight:red}red{highlight}
{highlight:yellow}yellow (default){highlight}
{highlight:green}green{highlight}
{highlight:cyan}cyan{highlight}
{highlight:blue}blue{highlight}
{highlight:purple}purple{highlight}

What you will get :

Unknown macro: {highlight}

red

Unknown macro: {highlight}

yellow

Unknown macro: {highlight}

green

Unknown macro: {highlight}

cyan

Unknown macro: {highlight}

blue

Unknown macro: {highlight}

purple

Parameters

{bgcolor:myColor}your content{bgcolor}

Name

Required?

Default

Description

default

yellow

The "myColor" default parameter defines the background colour for the content contained within the macro and can be either a common colour name (supported by most browsers) or a hexadecimal colour code (supported by all browsers).

Add a trademark, a service mark, copyright, or registered trademark

The Code :

Trademark:

{tm}Like a Rock{tm}

Service Mark:

{sm}My Service{sm}

Copyright:

{copyright}2010 Massachusetts Institute of Technology{copyright}

Registered Trademark:

{reg-tm}Registered Trademark{reg-tm}

What you will get :

Trademark:

Unknown macro: {tm}

Like a Rock

Service Mark:

Unknown macro: {sm}

My Service

Copyright:

Unknown macro: {copyright}

2010 Massachusetts Institute of Technology

Registered Trademark:

Unknown macro: {reg-tm}

Registered Trademark

Parameters

The Code :

What you will get :

Parameters

N/A

The Code :

What you will get :

Parameters

The Code :

What you will get :

Parameters

The Code :

What you will get :

Parameters

The Code :

What you will get :

Parameters

The Code :

What you will get :

Parameters

The Code :

What you will get :

Parameters

The Code :

What you will get :

Parameters

Error rendering macro 'deck'

java.lang.NullPointerException

Technical Support

Help Desk
If you have encountered a problem using Wikis or have a comment or question about Wikis, please contact the Computing Helpdesk via email or at 617-253-1101, Monday - Friday 8-6 EST

Search Wiki Help Pages

  • No labels