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
Composition Setup
deck.tab.active.background = #6495ED
Section
Column
width20%15%
Excerpt Include
pluglib:Advanced Macros Pluginpluglib:
Advanced Macros Plugin
nopaneltrue
Column
width60%
Deck of Cards
width907px
idBasic Macro Plugin
Card
labelOverview

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.
Wiki Markup
{deck:id=Basic Macro Plugin|width=907px} {card:label=Overview} h4. Basic Macros This plugin includes basic macros for linking and formatting content. h5. 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 {nl} \- Suppress rendering of a CamelCase link. {card} {card:label=Documentation} {deck:id=basicm} {card:label=anchor} {anchor:My Anchor} 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). h3.The Code The anchor : {code}
Card
labelDocumentation
Deck of Cards
idbasicm

Card
labelanchor

Anchor
My Anchor
My Anchor

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 :

Code Block

{anchor:My Anchor}
{code}

The

link:

{

Code Block
}

[#My Anchor]
{code} h3.{

Toggle Cloak

:

id

=

cloak

}

Result

{

Cloak

:
id
=
cloak
}

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

{note:title=All headings ARE anchors} {cloak} {card} {card:label=qoute} Generate blockquotes that may contain multiple paragraphs or complex markup. h3.The Code {code}

All headings ARE anchors

Card
labelqoute

Generate blockquotes that may contain multiple paragraphs or complex markup.

The Code

Code Block

{quote}
Some quoted content}
{quote}
{code} h3.{

Toggle Cloak

:

id

=

cloak1

}

Result

{

Cloak

:
id
=
cloak1
}

Some

'unqouted'

content

{quote}

Some

quoted

content

{quote}

Some

more

'unqouted'

content.

{cloak} {card} {card:label=noformat} The Noformat Macro displays a block of text in monospace font with no other formatting. h3.The Code {code}

Card
labelnoformat

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

The Code

Code Block

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

Toggle Cloak

:

id

=

cloak2

}

Result

{

Cloak

:
id
=
cloak2
}

Some

formatted

text.

{noformat} Some non-formatted text. {noformat} Some more formatted text. {cloak} h3.{

Some more formatted text.

Toggle Cloak

:

id

=

cloak3

}

Parameters

{

Cloak

:
id
=cloak3} ||*Name*||*Required?*||*Default*||*Description*|| |nopanel|(x)|false|Removes the bordering panel. | {cloak} {card} {card:label=panel} Draws a panel with an optional title and border. h3.The Code Default Panel: {code}
cloak3

Name

Required?

Default

Description

nopanel

false

Removes the bordering panel.

Card
labelpanel

Draws a panel with an optional title and border.

The Code

Default Panel:

Code Block

{panel}
Some content.
{panel}
{code}

Panel

with

a

dashed,

colored

border:

{

Code Block
}

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

Panel

with

a

title

and

solid,

colored

border:

{

Code Block
}

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

Panel

with

a

colored

background

and

title:

{

Code Block
}

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

Toggle Cloak

:

id

=

cloak4

}

Result

{

Cloak

:
id
=
cloak4
}

Default

Panel:

{panel}

Some

content.

{panel} Panel with a

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} {cloak} h3.{toggle-cloak:id=cloak5} Parameters {cloak:id=cloak5} ||*Name*||*Required?*||*Default*||*Description*|| |title|(x)|none|The title of the panel. If specified, this title will be displayed in its own title-row.| |boderStyle|(x)|none|The style of the panel's border. Valid values are 'solid', 'dashed' and other valid CSS border styles.| |borderColor|(x)|Grey|The colour of the panel's border. Accepts color name and hexadecimal color codes. | |borderWidth|(x)| |The width of the panel's border (in pixels).| |bgColor|(x)|Grey| The background colour of the panel. Accepts color name and hexadecimal color codes.| |titleBGColor|(x)| | The background colour of the title-row of the panel. Accepts color name and hexadecimal color codes.| {cloak5} {card} {card:label=color} Change the color of the contained text. You specify the color using the color name or hexadecimal code. h3.The Code {code}

dashedred

Some content.

Panel with a title and solid, colored border:

My Panelsolidblue

Some content.

Panel with a colored background and title:

#FFCCFFMy Titleyellow

Some content.

Toggle Cloak
id5
Parameters

Cloak
id5

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.

Card
labelcolor

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

The Code

Code Block

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

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

Toggle Cloak

:

id

=

cloak6

}

Result

{

Cloak

:
id
=cloak6} {color:red} Some colored text. {color} {color:#00FF00} Some more colored text. {color} {card} {cloak} {card:label=loremipsum} Insert paragraphs of "lorem ipsum" space-filler text. h3.The Code Three paragraghs: {code} {loremipsum} {code} One paragraph: {code} {loremipsum:1} {code} h3.{toggle-cloak:id=cloak7} Result {cloak:id=cloak7} *Three paragraphs:* {loremipsum} *One paragragh:* {loremipsum:1} {cloak} h3.{toggle-cloak:id=cloak8} Parameters {cloak:id=cloak8} ||*Name*||*Required?*||*Default*||*Description*|| |N/A|(x)|3|Determines the number of paragraphs generated| {cloak} {card} {card:label=nolink} The Nolink macro allows you to enter a web address or URL, without the browser automatically hyperlinking the URL. h3.The Code {code}
cloak6


Some colored text.


Some more colored text.

Cloak
loremipsum

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

The Code

Three paragraghs:

One paragraph:

cloak7 Result

cloak7

Three paragraphs:

One paragragh:

1

Toggle Cloak
idcloak8
Parameters

Cloak
idcloak8

Name

Required?

Default

Description

N/A

3

Determines the number of paragraphs generated

Card
Card
labelnolink

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

The Code

Code Block

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

Toggle Cloak

:

id

=

cloak9

}

Result

{

Cloak

:
id
=cloak9} {nolink:
cloak9

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

} {card} {card} {deck} {deck} {roundrect:bgcolor=#828282|width=909px|height=50px|corners=

Card

Deck of Cards

} {roundrect}
Round Rectangle
cornersfalse,false,true,true
bgcolor#828282
width909px
height50px

Column
width20%