deck.tab.active.background = #6495ED

Basic Macros

This plugin includes basic macros for linking and formatting content.

This plugin includes the following macros:
  • anchor - Create an anchor that allows people to link to a specific point in a page.
  • quote - Generate blockquotes that may contain multiple paragraphs or complex markup.
  • noformat - Create blocks of text where other wiki formatting is not applied.
  • panel - Draws a panel with an optional title and border.
  • color - Change the colour of the contained text.
  • loremipsum - Insert paragraphs of "lorem ipsum" space-filler text.
  • nolink and - Suppress rendering of a CamelCase link.


Create an anchor that allows users to link to a specific point in a page. An anchor is composed of the link and the content you are linking to (anchor).

The Code

The anchor :

{anchor:My Anchor}

The link:

[#My Anchor]

Result

The anchor itself is invisible, but the link will be displayed. Try clicking the link:

#My Anchor

It brings the top of the screen to the line where the anchor is placed. In this case, the anchor is located above the sentence, "Create an anchor that allows users...".

Generate blockquotes that may contain multiple paragraphs or complex markup.

The Code

{quote}
Some quoted content}
{quote}

Result

Some 'unqouted' content

Some quoted content

Some more 'unqouted' content.

The Noformat Macro displays a block of text in monospace font with no other formatting.

The Code

{noformat}
Some non-formatted text.
{noformat}

Result

Some formatted text.

Some non-formatted text.

Some more formatted text.

Parameters

Name

Required?

Default

Description

nopanel

(error)

false

Removes the bordering panel.

Draws a panel with an optional title and border.

The Code

Default Panel:

{panel}
Some content.
{panel}

Panel with a dashed, colored border:

{panel:borderStyle=dashed|borderColor=red}
Some content.
{panel}

Panel with a title and solid, colored border:

{panel:title=My Panel|borderStyle=solid|borderColor=blue}
Some content.
{panel}

Panel with a colored background and title:

{panel:bgColor=#FFCCFF|title=My Title|titleBGColor=yellow }
Some content.
{panel}

Result

Default Panel:

Some content.

Panel with a dashed, colored border:

Some content.

Panel with a title and solid, colored border:

Some content.

Panel with a colored background and title:

Some content.

Parameters

Name

Required?

Default

Description

title

(error)

none

The title of the panel. If specified, this title will be displayed in its own title-row.

boderStyle

(error)

none

The style of the panel's border. Valid values are 'solid', 'dashed' and other valid CSS border styles.

borderColor

(error)

Grey

The colour of the panel's border. Accepts color name and hexadecimal color codes.

borderWidth

(error)

 

The width of the panel's border (in pixels).

bgColor

(error)

Grey

The background colour of the panel. Accepts color name and hexadecimal color codes.

titleBGColor

(error)

 

The background colour of the title-row of the panel. Accepts color name and hexadecimal color codes.

Change the color of the contained text. You specify the color using the color name or hexadecimal code.

The Code

{color:red}
Some colored text.
{color}

{color:#00FF00}
Some more colored text.
{color}

Result


Some colored text.


Some more colored text.

Insert paragraphs of "lorem ipsum" space-filler text.

The Code

Three paragraghs:

{loremipsum}

One paragraph:

{loremipsum:1}

Result

Three paragraphs:

One paragragh:

Parameters

Name

Required?

Default

Description

N/A

(error)

3

Determines the number of paragraphs generated

The Nolink macro allows you to enter a web address or URL, without the browser automatically hyperlinking the URL.

The Code

{nolink:https://wikis.mit.edu/confluence/display/MITDASHBOARD/Wikis}

Result

https://wikis.mit.edu/confluence/display/MITDASHBOARD/Wikis