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

Compare with Current View Page History

« Previous Version 39 Next »

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]

What you will get :

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...".

All headings ARE anchors

Generate blockquotes that may contain multiple paragraphs or complex markup.

The Code :

{quote}
Some quoted content}
{quote}

What you will get :

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}

What you will get :

Some formatted text.

Some non-formatted text.

Some more formatted text.

Parameters

Name

Required?

Default

Description

nopanel

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}

What you will get :

Default Panel:

Some content.

Panel with a dashed, colored border:

Some content.

Panel with a title and solid, colored border:

My Panel

Some content.

Panel with a colored background and title:

My Title

Some content.

Parameters

Name

Required?

Default

Description

title

none

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

boderStyle

none

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

borderColor

Grey

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

borderWidth

 

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

bgColor

Grey

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

titleBGColor

 

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}

What you will get :


Some colored text.


Some more colored text.

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

The Code :

Three paragraghs:

{loremipsum}

One paragraph:

{loremipsum:1}

What you will get :

Three paragraphs:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam fermentum vestibulum est. Cras rhoncus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed quis tortor. Donec non ipsum. Mauris condimentum, odio nec porta tristique, ante neque malesuada massa, in dignissim eros velit at tellus. Donec et risus in ligula eleifend consectetur. Donec volutpat eleifend augue. Integer gravida sodales leo. Nunc vehicula neque ac erat. Vivamus non nisl. Fusce ac magna. Suspendisse euismod libero eget mauris.

Ut ligula. Maecenas consequat. Aliquam placerat. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla convallis. Ut quis tortor. Vestibulum a lectus at diam fermentum vehicula. Mauris sed turpis a nisl ultricies facilisis. Fusce ornare, mi vitae hendrerit eleifend, augue erat cursus nunc, a aliquam elit leo sed est. Donec eget sapien sit amet eros vehicula mollis. In sollicitudin libero in felis. Phasellus metus sem, pulvinar in, porta nec, faucibus in, ipsum. Nam a tellus. Aliquam erat volutpat.

Sed id velit ut orci feugiat tempus. Pellentesque accumsan augue at libero elementum vestibulum. Maecenas sit amet metus. Etiam molestie massa sed erat. Aenean tincidunt. Mauris id eros. Quisque eu ante. Fusce eu dolor. Aenean ultricies ante ut diam. Donec iaculis, pede eu aliquet lobortis, wisi est dignissim diam, ut fringilla eros magna a mi. Nulla vel lorem. Donec placerat, lectus quis molestie hendrerit, ante tortor pharetra risus, ac rutrum arcu odio eu tortor. In dapibus lacus nec ligula. Aenean vel metus. Nunc mattis lorem posuere felis. In vehicula tempus lacus. Phasellus arcu. Nam ut arcu. Duis eget elit id eros adipiscing dignissim.

One paragragh:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam fermentum vestibulum est. Cras rhoncus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed quis tortor. Donec non ipsum. Mauris condimentum, odio nec porta tristique, ante neque malesuada massa, in dignissim eros velit at tellus. Donec et risus in ligula eleifend consectetur. Donec volutpat eleifend augue. Integer gravida sodales leo. Nunc vehicula neque ac erat. Vivamus non nisl. Fusce ac magna. Suspendisse euismod libero eget mauris.

Parameters

Name

Required?

Default

Description

N/A

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}

What you will get :

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

deck: com.atlassian.confluence.macro.MacroExecutionException: java.lang.NullPointerException
Unknown macro: {roundrect}
  • No labels