Confluence 5.0 has reached end of life
Check out the [latest version] of the documentation
Work in progress
We are adding the details for each macro in turn. They are not all here yet. See CONF-24972 - Getting issue details... STATUS . In the meantime, please refer to the Confluence 3.5 macro documentation.
This page is an extension of Confluence Wiki Markup. It describes the wiki markup used to define specific Confluence macros – the macros that are shipped with Confluence. For each macro, we define the macro name, parameter names, and accepted parameter values.
- Configure the Documentation theme.
- Type wiki markup directly into the editor. Confluence will convert it to the rich text editor format as you type.
- Create links using the Advanced tab of the Links Browser.
- Insert a block of wiki markup into the Confluence editor. (Choose Insert > Wiki Markup.)
Note: You cannot edit content in wiki markup. Confluence does not store page content in wiki markup. Although you can enter wiki markup into the editor, Confluence will convert it to the rich text editor format immediately. You will not be able to edit the wiki markup after initial entry.
Anchor macro
Allows you to link to a specific part of a page.
Macro name: anchor
Macro body: None.
| Parameter name | Required | Default | Parameter description and accepted values |
|---|---|---|---|
(Unnamed in wiki markup) | Yes | (None) | The name of the anchor. |
Example:
{anchor:here}
On this page:
Related pages:
Attachments macro
Displays a list of attachments on a given page.
Macro name: Macro body: None. Available values: A comma-separated list of regular expressions, used to filter the attachments by file name. Note that the parameter values must be regular expressions. For example: Here is a tutorial on regular expressions. Available values: The default sort order is determined by the Available values:attachmentsParameter name Required Default Parameter description and accepted values oldNo falsefalse - Displays only the latest version of each attachment.true – Displays all versions of each attachment, including the old versions.patternsNo (None) .*jpg (not *.jpg)..*jpg,.*pngsortByNo datedatesizenamepageNo The page on which the macro exists. Page name, used to display attachments from another page. sortOrderNo sortBy type:ascendingdescendinglabelsNo (None) A comma-separated list of labels. Confluence will show only attachments that have all the labels specified. (The match is an AND, not an OR.) uploadNo falseDetermines whether the list of attachments will include options allowing users to browse for, and attach, new files.
Example:
{attachments:old=false|patterns=.*png,.*jpg|sortby=name|page=My page about chocolate|sortorder=descending|labels=chocolate,cookies|upload=false}
Blog Posts macro
Lists the most recent news items in the space.
Macro name: Macro body: None. Available values: One or more space keys, separated by a comma or a space. Special values: When specifying a personal space, remember to use the tilde (~) sign in front of the username, such as For example, Available values: One or more label values, separated by a comma or a space.blog-postsParameter name Required Default Parameter description and accepted values contentNo entireentire – Display the whole content of each blog post.excerpts – Display a short extract from each blog post. If the post contains an Excerpt macro, the Blog Posts macro will display the content defined in the Excerpt macro. If the post does not contain an Excerpt macro, the Blog Posts macro will display the first few sentences of the post.titles – Display a list of blog posts, showing titles only.spacesNo @self
-BADSPACE you will get only content which is not in the BADSPACE.+GOODSPACE you will get only content in GOODSPACE. (Note that this is not particularly useful, because each content item belongs to one space only. If you put a plus sign next to one space key and list other space keys too, the other space keys will be ignored.)@self — The current space.@personal — All personal spaces.@global — All site spaces.@favorite — The spaces you have marked as favourite.@favourite — The same as @favorite above.@all — All spaces in your Confluence site.* — The same as @all above.~jbloggs or ~jbloggs@example.com.authorNo (None) One or more usernames, separated by commas. timeNo (None) Available values: m — Minutesh — Hoursd — Daysw — Weekstime=12h – Display blog posts created in the last twelve hours.time=7d – Display blog posts created in the last seven days.reverseNo falseA value of true changes the sort order.sortNo creation
maxNo 15The maximum number of results to be displayed. labelNo (None)
-badpage you will get only content which is not labelled with 'badpage'.+superpage,+goodpage you will get only content which has at least two labels, being 'superpage' and 'goodpage'.
Example:
{blog-posts:content=titles|spaces=@self,ds|author=jsmith|time=4w|reverse=true|sort=creation|max=10|label=chocolate,cookies}
Change-History macro
Displays a history of updates made to a page.
Macro name: Macro body: None. Parameters: Nonechange-history
Example:
{change-history}
Chart macro
Displays a chart based on tabular data.
Macro name: Macro body: Accepts rich text, consisting of tables that hold the chart's data. This macro recognises a large number of parameters, listed here by type for convenience. These parameters determine the type of chart to display and how the chart looks. The type of chart to display. XY charts have numerical x- and y-axes. The x values may optionally be time-based. See the Available values: The display orientation. Applies to area, bar and line charts. Available values: Show in three dimensions. Applies to area, bar and line charts. Determines whether to display the body of the macro, consisting of the data table. By default, the chart data table is not displayed. Available values: The image format to be used for the chart. Available values: The data for the chart is taken from tables found in the macro body. The parameters below control how this data is interpreted. By default, numeric and date values are interpreted according to the Confluence global default language (locale) formats. If conversion fails, other languages defined in Confluence will be tried. You can specify additional conversion options using the parameters below. The content orientation. By default, the data tables will be interpreted as columns (horizontally) representing domain and x values. Available values: If ' The time period for time series data. Defines the granularity of how the data is interpreted. Available values: Use in combination with the Available values are the two-character ISO 639-1 alpha-2 codes. Determines whether the macro will forgive (allow) some data formatting errors. Available values: Colours are specified using hexadecimal notation or HTML colour names. Depending on the chart type, the range and domain axis may be customised. These values are automatically generated based on the data but can be overridden by specifying one or more more of these parameters. Placement of the axis label text for categories. Available values: Placement of the date tick mark. Available values: Example 1: To display something like 'Independent = 20': These are advanced options that can be used for chart versioning, to enable automation and to improve performance. Use these options carefully! Normally, the chart image is regenerated each time the page is displayed. These options allow for the generated image to be saved as an attachment and have subsequent access to re-use the attachment. This can be useful especially when combined with the Cache plugin to improve performance. Depending on the options chosen, chart images can be versioned for historical purposes. The name and location where the chart image will be saved as an attachment. The user must be authorised to add attachments to the page specified. Available syntax for this parameter: Defines the the versioning mechanism for saved charts. Available values: If chartChart type parameters
Parameter Required Default Description typeNo pietimeSeries parameter.- pie, bar, line, areaxyArea, xyBar, xyLine, xyStep, xyStepArea, scatter, timeSeriesgantt (beta)orientationNo verticalvertical – y-axis is verticalhorizontal – x-axis is vertical3DNo falsestackedNo falseStacked values. Applies to area and bar charts. showShapesNo true Applies to line charts. Shapes are shown at each data point. opacityNo A percentage value between 0 (transparent) and 100 (opaque) that determines how opaque the foreground areas and bars are. Chart display parameters
Parameter Required Default Description widthNo 300The width of the chart in pixels. heightNo 300The height of the chart in pixels. dataDisplayNo falsetrue or after – the data is displayed after the chart.before – the data is displayed before the chart.imageFormatNo pngpngjpgChart title and label parameters
Parameter Required Default Description titleNo (None) The title of the chart. subTitleNo (None) A subtitle for the chart. xLabelNo (None) The label for the x-axis (domain). yLabelNo (None) The label for the y-axis (range). legendNo falseDetermines whether to show a legend (key) for the chart. Chart data parameters
Parameter Required Default Description tablesNo All first level tables You can supply a comma-separated list of table IDs and/or table numbers (starting at 1) contained within the body of the macro that will be used as the data for the chart. If data tables are embedded in other tables, then table selection will be required. This occurs when more complex formatting is done (for example using section and column macros). columnsNo All columns You can supply a comma-separated list of column labels and/or column titles and/or column numbers for tables used for chart data. This applies to all tables processed. Columns are enumerated starting at 1. Column label is the text for the column in the header row. Column title is the HTML title attribute for the column in the header row. dataOrientation No horizontalvertical – data table columns will be interpreted as series.horizontal – data tables rows will be interpreted as series.timeSeries No falsetrue', the x values in an XY plot will be treated as time series data and so will be converted according date formats.dateFormat No Confluence language defined date formats For time series data, the date format allows for additional customisation of the conversion of data to date values. If a dateFormat is specified, it will be the first format used to interpret date values. Specify a format that matches the time series data. See simple date format.timePeriod No daymillisecond, second, minute, hour, day, week, month, quarter, yearlanguageNo (None) country parameter to form a locale. These additional number and date formats will be used for data conversion before the default languages.countryNo (None) Use in combination with the language parameter to form a locale. Valid values are the two-character ISO 3166 codes.forgiveNo truetrue — the macro tries to convert numeric and date values that do not totally match any of the default or user-specified formats.false — the macro enforces strict data formatting. If there are data format errors, the chart will not be produced.Chart colour parameters
Parameter Required Default Description bgColor No White Background colour of the chart. borderColor No No border Colour of the border around the chart. colorsNo A comma-separated list of colours used to customise the colours of categories, sections, and series. Chart axis parameters
Parameter Required Default Description rangeAxisLowerBound No (None) Minimum value for the range axis. rangeAxisUpperBound No (None) Maximum value for the range axis. rangeAxisTickUnitNo (None) Range axis units between axis tick marks. rangeAxisLabelAngleNo (None) Angle for the range axis label in degrees. domainAxisLowerBoundNo (None) Only applies to XY plots. Domain axis lower bound. For a date axis, this value must be expressed in the date format specified by the dateFormat parameter.domainAxisUpperBoundNo (None) Only applies to XY plots. Domain axis upper bound. For a date axis, this value must be expressed in the date format specified by the dateFormat parameter.domainAxisTickUnitNo (None) Only applies to XY plots. Domain axis units between axis tick marks. For a date axis, this value represents a count of the units specified in the timePeriod parameter. The timePeriod unit can be overridden by specifying a trailing character: y (years), M (months), d (days), h (hours), m (minutes), s (seconds), u (milliseconds).domainAxisLabelAngleNo (None) Only applies to XY plots. The angle for the domain axis label, in degrees. categoryLabelPositionNo (None) up45 — 45 degrees going upwardup90 — 90 degrees going upwarddown45 — 45 degrees going downwarddown90 — 90 degrees going downwarddateTickMarkPositionNo startstart — tick mark is at the start of the date period.middle — tick mark is in the middle of the date period.end — tick mark is at the end of the date period.Pie chart Parameters
Parameter Required Default Description pieSectionLabelNo Show only the pie section key value Formatof pie section labels. The format uses a string with special replacement variables: %0% is replaced by the pie section key.%1% is replaced by the pie section numeric value.%2% is replaced by the pie section percent value.%0% = %1%
Example 2: To display something like 'Independent (20%)':%0% (%2%)
pieSectionExplodeNo No exploded sections A comma-separated list of pie keys that are to be shown exploded. Note: requires jFreeChart version 1.0.3 or higher. Chart attachment parameters
Parameter Required Default Description attachmentNo (None) ^attachmentName.png — the chart is saved as an attachment to the current page.page name^attachmentName.png — the chart is saved as an attachment to the page name provided.spacekey:page name^attachmentName.png — the chart is saved as an attachment to the page name provided in the space indicated.attachmentVersionNo newnew — creates new version of the attachment.replace — replaces all previous versions of the chart. To replace an existing attachment, the user must be authorised to remove attachments for the page specified.keep — only saves a new attachment if an existing export of the same name does not exist. An existing attachment will not be changed or updated.attachmentCommentNo (None) Comment used for a saved chart attachment. thumbnailNo falsetrue, the chart image attachment will be shown as a thumbnail (small, expandable) image.
Example:
Below is a simple example of a pie chart. See more examples in Wiki Markup Examples for Chart Macro.{chart:type=pie|title=Fish Sold}
|| Fish Type || 2004 || 2005 ||
|| Herring | 9,500 | 8,300 |
|| Salmon | 2,900 | 4,200 |
|| Tuna | 1,500 | 1,500 |
{chart}
Cheese macro
Displays the words "I like cheese!"
Macro name: Macro body: None. Parameters: Nonecheese
Example:
{cheese}
Children Display macro
Displays the children and descendants of the current page.
Macro name: Macro body: None. Determines the sort order of the list of child pages. Available values: A heading style to be applied to the list of child pages. Available values: The name of the parent page. The macro will display the children of the specified page. To specify a page in a different space, use a space key followed by a colon. For example: If the value of this parameter is a forward slash ( If childrenParameter name Required Default Parameter description and accepted values reverseNo falseReverses the sort order in the list of child pages. Use this parameter in conjunction with the sort parameter described below. A value of true will change the sort order from ascending to descending.sortNo Manual if the pages have been manually reordered, otherwise alphabeticalby page title creation – Sort by the date on which the page was created.title – Sort alphabetically by page name.modified – Sort by the date on which the page was last updated.styleNo Bullet list h1 (heading level 1) through to h6 (heading level 6).pageNo The page that contains the macro MYSPACE:My page/) the macro will list the pages at the root of the current space. In other words, the pages without parents.excerptNo falseIf true, Confluence will display any excerpts that are defined on the child pages. The excerpts must be defined via an Excerpt macro.firstNo (None) The maximum number of child pages to be displayed (at the top level). For example, if the value of this parameter is 99, the macro will display the first 99 pages at the top level. It will also display their children, as determined by the depth and all parametersdepthNo (None) The number of levels of child pages to display. For example, if the value is 2, the macro will display 2 levels of child pages.allNo falsetrue, Confluence will display all levels of child pages. This setting will override the depth setting.
Example:
{children:reverse=true|sort=creation|style=h4|page=Home|excerpt=true|first=99|depth=2|all=true}
Code Block macro
Displays code in your document with the appropriate syntax highlighting.
Macro name: Macro body: Accepts plain text. Specifies the colour scheme used for displaying your code. Many of these themes are based on the default colour schemes of popular integrated development environments (IDEs). The default theme is Available themes: If If Specifies the language (or environment) for syntax highlighting. If If codeParameter name Required Default Parameter description and accepted values titleNo (None) Adds a title to the code macro box. themeNo ConfluenceConfluence (also known as Default), which is typically black and coloured text on a blank background.DJangoEmacsFadeToGreyMidnightRDarkEclipseConfluence (same as default)linenumbersNo falsetrue, a line number will be shown to the left of each line of code. Numbering is incremented by 1.false, no line numbers are shown.languageNo javaactionscript3bashcsharp — that is, C#coldfusioncpp — that is, C++cssdelphidifferlanggroovyjavajavafxjavascriptperlphppowershellpythonrubyscalasqlvb — that is, Visual Basichtml/xmlfirstlineNo 1When linenumbers is true, this value defines the number of the first line of code.collapseNo falsetrue, the code macro's content will be collapsed upon visiting or refreshing the Confluence page. Clicking the 'expand source' link allows you to view the content.false, the code macro's content is always displayed in full.
Example:
{code:title=This is my title|theme=FadeToGrey|linenumbers=true|language=html/xml|firstline=0001|collapse=true}
This is my code
{code}
Column macro
Used with the Section macro to define columns on a page. See Working with page layouts and columns and sections.
Macro name: Macro body: Accepts rich text.columnParameter name Required Default Parameter description and accepted values widthNo 100% of the page width, divided equally by the number of columns in the section. The width of the column. Can be specified either in pixels (for example, 400px) or as a percentage of the available page width (for example, 50%).
Example:
{column:width=100px}
This is the content of *column 1*.
{column}
Content by Label macro
Displays a list of content associated with specific labels.
Macro name: Macro body: None. Filters the results by space. The macro will display only the pages and other content types which belong to the space(s) you specify here. Special values: When specifying a personal space, remember to use the tilde (~) sign in front of the username, such as Filters the results by author. The macro will display only the pages and other content types which are written or updated by the author(s) you specify here. To exclude content of a given content type, put a minus sign (-) immediately in front of that content type. For example: If you specify a content type of Available values:contentbylabelParameter name Required Default Parameter description and accepted values spacesNo @all
You can specify one or more space keys, separated by a comma or a space.
-BADSPACE you will get only content which is not in the BADSPACE.+GOODSPACE you will get only content in GOODSPACE. (Note that this is not particularly useful, because each content item belongs to one space only. If you put a plus sign next to one space key and list other space keys too, the other space keys will be ignored.)@self — The current space.@personal — All personal spaces.@global — All site spaces.@favorite — The spaces you have marked as favourite.@favourite — The same as @favorite above.@all — All spaces in your Confluence site.* — The same as @all above.~jbloggs or ~jbloggs@example.com.authorNo (None)
You can specify one or more authors, separated by a comma.jsmith,jbrowntitleNo (None) Adds a heading to the list. showLabelsNo trueDetermines whether to display the matching labels in the list of results. reverseNo falseUse this parameter in conjunction with the sort parameter. Set reverse=true to change the sort from ascending to descending. This parameter is ignored if the sort parameter is not specified.sortNo modifiedDetermines how the results are sorted. To change the sort order from ascending to descending, use the reverse parameter described above.
If this parameter is not specified, the sort order defaults to descending order based on the last modification date.
Values:
maxNo 15Determines the maximum number of results to be displayed. Note that the results are sorted first, and then the maximum parameter is applied. excerptNo falseIf this parameter is set to true, the macro displays an excerpt from each page listed in the results. Note that you must define the excerpts on each of those pages, by adding the Excerpt macro to each page. If a particular page does not have an excerpt defined, then the Content by Label macro will not attempt to show an excerpt for that page. The Content by Label macro will show only the first few lines of the excerpt for each page.labelsYes (None) Use this parameter to filter the results by label. The macro will display only the pages and other content types which are tagged with the label(s) you specify here. See also the operator parameter.
You can specify one or more label values, separated by a comma or a space.
-badpage you will get only content which is not labelled with 'badpage'.+superpage,+goodpage you will get only content which has at least two labels, being 'superpage' and 'goodpage'.showSpaceNo trueDetermines whether to display the spaces in the list of results. typeNo All Filters the restults by content type. The macro will display only the content of the type you specify here.
You can specify one or more types, separated by a comma or a space.-blogpost you will get pages and all other content except for blog posts.page — ages.blogpost or news — blog posts, also known as news items.attachment – attachments.operatorNo ORThe operator to apply to the supplied lists of labels. By default, a page with any of the non-prefixed labels (that is, labels without a plus (+) or minus (-) sign immediately preceding it) will be listed. If you specify a value of AND, only pages with all of the supplied non-prefixed labels will be listed.
Note that this parameter only modifies the behaviour of the 'Label(s)' parameter and only affects label values without a plus (+) or minus (-) sign prefix. To avoid confusion or unexpected results, we recommend that you do not use the operator parameter in conjunction with any label values prefixed with '+' or '-' signs.
Example:
{contentbylabel:spaces=@personal,@self|author=admin,smaddox|title=My labelled pages|showLabels=false|reverse=true|sort=creation|max=10|excerpt=true|labels=chocolate,cake|showSpace=false|type=page|operator=AND}
Content by User macro
Displays a list of the content items that have been created by a specified Confluence user.
Macro name: Macro body: None. (Unnamed in wiki markup)content-by-userParameter name Required Default Parameter description and accepted values default-parameterYes (None) The Confluence username for the person whose content you wish to display
Example:
{content-by-user:jsmith}
Content Report Table macro
Wiki markup is not available for this macro. You cannot add this macro via wiki markup.
Contributors macro
Displays a list of Confluence users who have made a contribution of some type to a page.
Macro name: Macro body: None. Parameter name Default Parameter description and accepted values (None) Limits the number of contributors displayed in the list. Current space Specifies the space key of the Confluence space to search. Space keys are case sensitive. You can specify one or more space keys or special values, separated by commas. Reverses the order of contributors in the list. Must be used in conjunction with the The specified page only Specifies additional pages to include when generating the list of contributors. Available values: (None) Limits the list of contributors to those who created the specified labels on a page. You can specify one or more labels, separated by commas. If the value is true, the macro will display a list of the pages used to generate the list of contributors. "No contributors found for:" (and a summary of selected parameter values) Any message given here will override the default message that is displayed when no contributors are found. false Determines whether the macro will show the number of times each person made a contribution. Both pages and blog posts Restricts the content type that the macro will use when generating the list of contributors. Available values: authors Filters by either the type of contribution made to a page (and optionally its descendant pages), or the watches on the page. Contribution types are: You can specify one or more contribution types, separated by commas. Determines how the list of contributors is formatted: Determines whether to include those who contributed anonymously to a page. Specifies the criteria used to sort contributors. Sort criteria are: The current page Specifies the page to use when generating the list of contributors. If Determines whether to show the last time each person made a contribution. (None)e Specifies the publication date for a blog post. The date format required is: YYYY/MM/DD.contributorsRequired limit No spaces No
Special values:
If no page and labels are specified, all pages from the specified set of spaces are included.reverseNo falseorder parameter.scope
No children – only the child pages of the specified page.descendants – all descendants of the specified page.labels No showPages No falsenoneFoundMessage No showCount No contentType
No pages – pagesblogposts – blog posts.include
No authors - includes people who created or have edited the page(s)comments - includes people who have added comments to the page(s)labels - includes people who have added labels to the page(s)watches - includes people who are watching the page(s).mode
No inline
inline — a comma-separated listlist — a bullet list.showAnonymous
No false
order
No count
count – sorts the names based on the total number of contributions to the page(s)name – sorts the names into alphabetical orderupdate – sorts the names by the date of their last contribution to the page(s).page
No page and spaces are left blank, the current page is assumed.showLastTime
No false
publishDate
No
Example:
This example specifies a content type of blog posts: This example specifies a content type of pages: {contributors:limit=10|spaces=ds,@personal|reverse=true|labels=chocolate,cake|showPages=true|noneFoundMessage=Oh dear, no contributors found|showCount=true|contentType=blogposts|include=authors,comments,labels,watches|mode=list|showAnonymous=true|order=update|showLastTime=true|publishDate=2012/06/30}
{contributors:limit=10|spaces=ds,@personal|reverse=true|scope=descendants|labels=chocolate,cake|showPages=true|noneFoundMessage=Oh dear, no contributors found|showCount=true|contentType=pages|include=authors,comments,labels,watches|mode=list|showAnonymous=true|order=update|page=ds:Advanced Topics|showLastTime=true}
Contributors Summary macro
Displays a table of contribution-based statistics for a set of pages.
Macro name: Macro body: None. Parameter name Default Parameter description and accepted values (None) Limits the number of contributors or pages displayed in the table. Current space Specifies the space key of the Confluence space to search. Space keys are case sensitive. You can specify one or more space keys or special values, separated by commas. Reverses the order of items in the table. Must be used in conjunction with the Determines whether to include those who contributed anonymously to a page. The specified page only Specifies additional pages to include when generating the list of contributors. Available values: Sets the criterion used for sorting items in the table. Available values: The current page A page title. Specifies the page to use when generating the list of contributors. If (None) Limits contribution-based statistics to the specified labels only. You can specify one or more labels, separated by commas. Determines the columns that should appear in the table. The statistics or type of information presented depends on the Available values: You can specify one or more columns, separated by commas. Specifies the basis for grouping contribution-based statistics: Both pages and blog posts Restricts the content type that the macro will use when generating the list of contributors. Available values: (None) Specifies the publication date for a blog post. The date format required is: YYYY/MM/DD.contributors-summaryRequired limit No spaces No
Special values:
If no page and labels are specified, all pages from the specified set of spaces are included.reverseNo falseorder parameter.showAnonymous
No false
scope
No children – only the child pages of the specified page.descendants – all descendants of the specified page.order
No edits
edits – sorts items in the table based on the total number of edits made, either by a contributor or to a page.name – sorts items in the table in alphabetical order, either by contributor or page name.editTime – sorts items in the table based on when the contributor last edited a page (or a specified set of pages) or when the page was lasted edited.update – sorts items in the table based on when the contributor last made any contribution to a page (or a specified set of pages) or when the page last had any contribution made to it.page
No page and spaces are left blank, the current page is assumed.labels No columns
No edits,comments,labelsgroupby parameter.edits – the number of times each contributor has edited the page(s) or the number of edits made to each page.edited – a list of the pages edited by each contributor or a list of contributors who have edited each page.comments – the number of times each contributor has added comments to the page(s) or the number of comments on each page.commented – a list of pages to which each contributor has added comments or a list of contributors who have commented on each page.labels – the number of times each contributor has added labels to the page(s) or the number of labels on each page.labeled – a list of pages to which each contributor has added labels or a list of contributors who have added a label to each page.labellist – a list of labels either added by each contributor or on each page.watches – the number of pages being watched by each contributor/person or the number of contributors/people watching each page.watching – a list of pages being watched by each contributor/person or a list of contributors/people watching each page.lastupdate – the last time each contributor made an update or when each page was last updated. Valid updates can include edits, comments or label modifications to a page.groupby
No contributorscontributors – group by the people who have contributed.pages – group by the pages used to find the contributors.contentType
No pages – pagesblogposts – blog posts.showZeroCountsNo falseDetermines whether contributors or pages are included for which the calculated statistic is zero. publishDate
No
Example:
This example specifies a content type of blog posts: This example specifies a content type of pages:{contributors-summary:limit=10|spaces=ds,@personal|reverse=true|showAnonymous=true|order=update|labels=chocolate,cake|columns=edits,comments,labels,lastupdate|groupby=pages|contentType=blogposts|showZeroCounts=true|publishDate=2012/06/07}
{contributors-summary:limit=10|spaces=ds,@personal|reverse=true|showAnonymous=true|scope=descendants|order=update|page=ds:Advanced Topics|labels=chocolate,cake|columns=edits,comments,labels,lastupdate|groupby=pages|contentType=pages|showZeroCounts=true}
Create Space Button macro
Displays a create space button linked to the create space page.
Macro name: Macro body: None. Determines the size of the 'create space' icon displayed. Available values: Natural size of icon (1:1 pixel ratio) The width of the icon to be displayed, specified in pixels. Confluence will stretch or shrink the width of the icon to the number of pixels specified. Note: This parameter is not available via the macro browser. Natural size of icon (1:1 pixel ratio) The height of the icon to be displayed, specified in pixels. Confluence will stretch or shrink the height of the icon to the number of pixels specified. Note: This parameter is not available via the macro browser.create-space-buttonParameter name Required Default Parameter description and accepted values sizeNo largelargesmallwidthNo heightNo
Example:
{create-space-button:size=small}
{create-space-button:height=50px|width=50px}
Excerpt Include macro
Allows you to display an excerpt from another page within the current page.
Macro name: Macro body: None. (Unnamed in wiki markup) The name of the page that contains the excerpt to be displayed. To include an excerpt from a page in another space, type the space key followed by a colon (:) and the page name, like this: Note: The ability to include excerpts from other spaces is available only in Confluence 4.3.2 and later. In earlier versions of Confluence, the Excerpt Include macro does not work across spaces. Use the Include Page macro instead.excerpt-includeParameter name Required Default Parameter description and accepted values default-parameterYes (None.) SPACEKEY:My page namenopanelNo FalseDetermines whether Confluence will display a panal around the excerpted content. The panel includes the title of the page containing the excerpt, and the border of the panel. By default, the panel and title are shown.
Example:
{excerpt-include:My page name|nopanel=true}
Excerpt macro
Define a part of a page as the page's 'excerpt' which can then be displayed in another page.
Macro name: Macro body: Accepts rich text. Determines whether the content of the Excerpt macro body is displayed on the page that contains the Excerpt macro. Note that this option affects only the page that contains the Excerpt macro. It does not affect any pages where the content is reused. Determines whether the content of the Excerpt macro body is displayed on a new line or inline. Available values: Note that this option affects only the page that contains the Excerpt macro. It does not affect any pages where the content is reused.excerptParameter name Required Default Parameter description and accepted values hiddenNo Falseatlassian-macro-output-typeNo BLOCKBLOCK – Displays the content of the macro on a new line.INLINE – Displays the the content of the macro as part of the same paragraph as the text preceding and following it.
Example:
{excerpt:hidden=true|atlassian-macro-output-type=BLOCK}
This is the *text* I want to reuse in other pages. This text is inside an Excerpt macro.
{excerpt}
Expand macro
Displays an expandable/collapsible section of text.
Macro name: Macro body: Accepts rich text. (Unnamed in wiki markup)expandParameter name Required Default Parameter description and accepted values default-parameterNo Click here to expand...Text that will be displayed on the line that people can click to expand the hidden text.
Example:
{expand:This is my message}
This text is _hidden_ until you expand it.
{expand}
Favourite Pages macro
Displays a list of your favourite pages.
Macro name: Macro body: None. Parameters: None.favpages
Example:
{favpages}
Gadget macro
Allows you to add Confluence gadgets to pages or blog posts.
Macro name: Macro body: None. A note about editing a gadget's properties (preferences) in markup: It is possible to edit the values of these properties directly in the wiki markup or storage format. However, this will allow the entry of invalid values. If a gadget property supports a certain set of values, the macro browser will restrict the user to selecting only valid values for that property. For that reason, we recommend that you use the macro browser to edit a gadget's properties.gadgetParameter name Required Default Parameter description and accepted values widthNo 450 pixelsThe width of the gadget, using one of the following conventions: px or plain numbers. For example, 500px or 500%. For example, 50%autoborderNo trueDetermines whether Confluence will draw a border around the gadget. urlYes (none.) This is the location of the gadget specification (XML file). preferencesNo (Gadget-dependent.) Specific property settings that are particular to each gadget.
Example:
This example shows the Confluence Page gadget: This example shows the Confluence News gadget:{gadget:width=500|border=false|url=rest/gadgets/1.0/g/com.atlassian.confluence.plugins.gadgets:confluence-page-gadget/gadgets/confluence-page-gadget.xml}
spaceName=Documentation&spaceKey=DOC&quickfind-space=Documentation&pageId=753666&pageName=Documentation%20Home&quickfind-page=Documentation%20Home&isEditable=true&isConfigured=true&refresh=15&showLink=false
{gadget}
{gadget:url=rest/gadgets/1.0/g/com.atlassian.confluence.plugins.gadgets:confluence-news-gadget/gadgets/confluence-news-gadget.xml}
{gadget}
Gallery macro
Forms a thumbnail gallery of all images attached to a page.
Macro name: Macro body: None. Parameter name Default Parameter description and accepted values (None) Specify a title to be displayed above your gallery of pictures. Not specified. Sort order is ascending. Used in combination with the Available values: None. The sort order is unspecified and therefore unpredictable. Specify an attribute to sort the images by. Sort order is ascending, unless you specify the Available values: If no page is specified, the gallery macro displays the images attached to the page on which the macro is used. No exclusions. The gallery will include all the pictures on the page. 4 Specify the number of columns for the table that forms the gallery. No exclusions. Include all the pictures on the page. Specify images by file name. The gallery will ignore any images specified. You can specify more than one image, separated by commas. Include all the pictures on the page. If you specifically include one or more pictures, the gallery will show only those pictures. You can specify more than one picture, separated by commas. galleryRequired title
No reverse
No sort parameter, to change the sort order from ascending to descending.true – Sort order is descending.false – Sort order is ascending.sort
No reverse parameter.name – file name.comment – comment linked to the attached file.date – date/time last modified.size – size of the attached file.page
No Specify the title of the page which contains the images you want displayed. You can specify more than one page name, separated by commas. To specify a page in a different space, use the following syntax: SPACEKEY:Page title.includeLabel No None. The images are not filtered by label. The gallery will include only those pictures that have the specified label. If you wish to enter more than one label, separate the labels with commas. Confluence will show only images that have all the labels specified. (The match is an AND, not an OR.) For information on labelling the attachments, see Adding Labels. excludeLabel No The gallery will ignore any pictures that have the specified label. You can specify more than one label, separated by commas. For information on labelling the attachments, see Adding Labels. columns
No excludeNo
Note: The file name and file type for this parameter are case sensitive. For example, 'my picture.PNG' will not be recognised as 'my picture.png'.includeNo
Note: The file name and file type for this parameter are case-sensitive. For example, 'my picture.PNG' will not be recognised as 'my picture.png'.
Example:
{gallery:title=My holiday pictures|reverse=true|sort=size|page=My page1, ds:Welcome to Confluence|excludeLabel=badlabel1, badlabel2|columns=3|exclude=badpicture.png}
Global Reports macro
Displays a list of links to global reports within a table.
Macro name: Macro body: None. Parameter name Default Parameter description and accepted values 99% Specify the width of the table in which the links are displayed, as a percentage of the window width.global-reportsRequired width
No
Example:
{global-reports:width=50%}
HTML Include macro
Includes the content of an external HTML file into a Confluence page.
Macro name: Macro body: None. Parameter name Default Parameter description and accepted values (None) Specify a URL of the content to be included into your Confluence page.html-includeRequired url
Yes
Example:
{html-include:url=http://www.example.com}
HTML macro
Renders your specified HTML code within the current page.
Macro name: Macro body: Text, consisting of HTML code. Parameters: None.html
Example:
{html}<a href="http://www.atlassian.com">Click here</a> to see the <b>Atlassian</b> website.{html}
IM Presence macro
Displays graphically when a contact is online.
Macro name: Macro body: None. Parameter name Default Parameter description and accepted values Determines whether the macro shows or hides the user ID of the contact. Available values: Not specified. The web service that Confluence should query. Available values: (Unnamed in wiki markup)imRequired showid
No truetrue – User ID is shown on the page.false – User ID is not shown on the page.service
Yes default-parameterYes Not specified. User ID. Identifies the IM contact by their ID, account name or screen name.
Example:
{im:MySkypeName|service=skype|showid=false}
Include Page macro
Inserts the contents of the specified page into the current one.
Macro name: Macro body: None. (Unnamed in wiki markup) The name of the page whose content should be included on the current page To includecontent from a page in another space, type the space key followed by a colon (:) and the page name, like this: To include a blog post, specify the date as well as the title of the blog post. For example: You can include pages from personal spaces using ~username as the space key, where 'username' is the person's username. For example, includeParameter name Required Default Parameter description and accepted values default-parameterYes (None.) SPACEKEY:My page name/2010/12/01/My blog post.~jsmith:My page name.
Example:
{include:DOC:My chocolate page}
Info macro
Displays a block of text in a blue highlight box.
Macro name: Macro body: Accepts rich text.infoParameter name Required Default Parameter description and accepted values iconNo trueDetermines whether to display the icon in the title bar of the information box.
titleNo (None) The title of the information box. If specified, the title text will be displayed in bold next to the icon.
Example:
{info:title=This is my title|icon=false}
This is _important_ information.
{info}
JIRA Issues macro
Displays a list of JIRA issues in a page.
Macro name: Macro body: None. Parameter name Required Default Parameter description and accepted values No If this parameter is set to 'true', JIRA will return only the issues which allow unrestricted viewing i.e. the issues which are visible to anonymous viewers, as determined by JIRA's viewing restrictions. If this parameter is omitted or set to 'false', then the results depend on how your administrator has configured the communication between JIRA and Confluence. By default, Confluence will show only the JIRA issues which the user is authorised to view. See more details below. No The value of the 'url' parameter If you specify a 'baseurl', then the link in the header, pointing to your JIRA site, will use this base URL instead of the value of the 'url' parameter. This is useful when Confluence connects to JIRA with a different URL from the one used by other users. No By default, the following columns are shown: A list of JIRA column names, separated by semi-colons (;). Example columns are: key, summary, type, created, fixversion, updated, due, assignee, reporter, priority, status and resolution. You can include any columns recognised by your JIRA site, including custom columns. See the JIRA documentation for a list of names. No If this parameter is set to 'true', the issue list will show the number of issues in JIRA. The count will be linked to your JIRA site. No The macro maintains a cache of the issues which result from the JIRA query. If the 'cache' parameter is set to 'off', the relevant part of the cache is cleared each time the macro is reloaded. (The value 'false' also works and has the same effect as 'off'.) No The height in pixels of the table displaying the JIRA issues. No In formats not mentioned below, the default is 'dynamic'. By default, the JIRA Issues macro offers a dynamic display with the following features: No JIRA Issues You can customise the title text at the top of the JIRA issues table with this parameter. For instance, setting the title to 'Bugs-to-fix' will replace the default 'JIRA Issues' text. This can help provide more context to the list of issues displayed. Yes none The URL of the XML view of your selected issues in JIRA Issue Navigator. No 100% The width of the table displaying the JIRA issues. Can be indicated either as a percentage (%) or in pixels (px).jiraissuesanonymousfalsebaseurlcolumnscountfalsecacheonheight480
Note that this height specification is ignored in the following situations:renderMode
The default is 'static' when the JIRA issues are displayed in a PDF or Word document, in an email message or in an RSS feed.
Set the 'renderMode' parameter to 'static' if you want to disable the dynamic display features.titleurl
Note: If the URL in the 'url' parameter does not contain a tempMax argument, then the value of tempMax will default to 500. If your JIRA server is version 3.12 or earlier, this means that the JIRA Issues macro will return a maximum of 500 issues. If your JIRA server is version 3.13 or later, a value of 500 means that the JIRA Issues macro will return a maximum of 500 issues per page.width
Example:
{jiraissues:anonymous=true|url=http://jira.atlassian.com/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+CONF+AND+%28summary+%7E+jiraissues+OR+description+%7E+jiraissues+OR+comment+%7E+jiraissues%29&tempMax=10|columns=type;key;summary}
JUnit Report macro
Display a summary of JUnit test results.
Macro name: Macro body: None. Parameter name Default Parameter description and accepted values (None) URL of a directory containing your test result files. This must be a directory name and not the XML file itself. Overrides the Note: When using a local drive, you must use a directory name and not the XML file itself. Level of detail required in the report. Available values: (None) URL of a particular test result XML file. This parameter is overridden by the For Confluence installations that require authentication, you can specify login credentials as part of this parameter, in the form of URL parameters: If the value of this parameter is junitreportRequired directoryMust include either the directory or the url parameterurl parameter if you use both.reportdetailNo allallfixturesummaryfailuresonlyurlMust include either the directory or the url parameterdirectory parameter if you use both.os_username — The username of a Confluence user with permission to access the JUnit test results.os_password — The password of the Confluence user specified in the os_username parameter.debugNo falsetrue, the report will show the content of failures, as well as the error messages.
Example:
Loading JUnit reports from a local drive: If your Confluence site is not accessible by anonymous users, specify login credentials with the {junitreport:directory=file:///C:/TEMP/}
Loading JUnit reports from a network drive:{junitreport:url=http://*host*/*path*}
Loading JUnit reports from a Confluence site:{junitreport:url=http://yourConfluenceInstance.com/download/attachments/<page id>/file.xml}
Loading JUnit reports from a Confluence site that requires authentication:os_username and os_password URL parameters (as part of the macro's url parameter). In this case, we are specifying a username of 'admin' and a password of 'secret'.{junitreport:url=http://yourConfluenceInstance.com/download/attachments/<page id>/file.xml?os_username=admin&os_password=secret}
Labels List macro
Displays a hyperlinked alphabetical index of all labels within the current space.
Macro name: Macro body: None. Parameter name Default Parameter description and accepted values Current spacelistlabelsRequired spaceKeyNo The key of the space whose labels you want to display.
Example:
{listlabels:spaceKey=DOC}
Livesearch macro
Add a dynamic search box to a wiki page.
Macro name: Macro body: None. Parameter name Default Parameter description and accepted values (None) All spaceslivesearchRequired idNo Uniquely identifies the Livesearch macro when there are more than one Livesearch macros in a page. spaceKeyNo Specify a space key to limit the search to the given space.
Example:
{livesearch:spaceKey=DOC|id=mysearch1}
Loremipsum macro
Display a few paragraphs of pseudo-Latin text.
Macro name: Macro body: None. Parameter name Default Parameter description and accepted values (No name in wiki markup) 3loremipsumRequired default-parameterNo Number of paragraphs. Determines the amount of pseudo-Latin (space-filler) text to display. The macro will display a maximum number of 30 paragraphs.
Example:
{loremipsum:2}
Multimedia macro
Displays videos, animations and more, sourced from a file attached to a Confluence page and displayed on your page.
Macro name: Macro body: None. Parameter name Required Default Parameter description and accepted values No Current page Name of the page to which the multimedia file is attached. No Current space Space key of the page that has the multimedia file attached. Yes None File name of the multimedia file, which is attached to a Confluence page. No If not specified, the browser will determine the width based on the file type. Width of the movie window to be displayed on the page. By default, this value is specified in pixels. You can also choose to specify a percentage of the window's width, or any other value accepted by HTML. No If not specified, the browser will determine the height based on the file type. Height of the movie window to be displayed on the page. By default, this value is specified in pixels. You can also choose to specify a percentage of the window's height, or any other value accepted by HTML. No If the parameter is set to multimediapagespacenamewidthheightautostartfalsetrue then the video or audio file will start playing as soon as the page is loaded. If this option is set to false then the file will not play until the user clicks the icon or image on the page.
Example:
{multimedia:space=DOC|page=My macros|name=ninjas.swf|autostart=true}
Page Properties macro
Allows you to embed metadata into a page and then display that data in tabular form using the Page Properties Report macro .Previously known as the Metadata Details macro.
Macro name: Macro body: Accepts rich text.detailsParameter name Required Default Parameter description and accepted values hiddenNo falseDetermines whether the data in the Page Properties macro will be displayed on the current page. This setting does not affect the display of the detail in the Page Properties Report macro. labelNo (None) The label used to identify the metadata on this page. Confluence will add this label to the page.
Example:
{details:hidden=true|label=status}
Project Status: Complete
Team: Green Parrots
Deadline: 2012-09
{details}
Page Properties Report macro
Presents a tabulated summary of selected metadata, which has been embedded on pages using the Page Properties macro. Previously known as the Details Summary macro.
Macro name: Macro body: None.detailssummaryParameter name Required Default Parameter description and accepted values labelNo (None) Identifies the metadata to be included in the Page Properties Report. The report will show data from the Page Properties macros on the pages in the current space that have this label on the page.
Example:
{detailssummary:label=status}
Section macro
Used with the Column macro to define columns on a page. See Working with page layouts and columns and sections.
Macro name: Macro body: Rich text, consisting of one or more Column macros.sectionParameter name Required Default Parameter description and accepted values borderNo False If the value is true, the columns in this section will have a dashed border.
Example:
{section:border=true}
{column:width=100px}
This is the content of *column 1*.
{column}
{column}
This is the content of *column 2*.
{column}
{section}
Table of Contents macro
Displays a table of contents from your page headings.
Macro name: Macro body: None. This parameter applies to vertical lists only ( Use this parameter to indent the list items according to CSS quantities. For example, a value of Specifies the headings to exclude by pattern matching. The value must be a regular expression. If this parameter is specified, the table of contents will include only the headings that match the regular expression. Example: Defines the overall format of the table of contents. Available values: This parameter applies to flat lists only ( Available values: Specifies the headings to include by pattern matching. The value must be a regular expression. If this parameter is specified, the table of contents will ignore any headings that do not match the regular expression. Example: See Sun's Regex documentation for examples of constructing regular expression strings.tocParameter name Required Default Parameter description and accepted values printableNo trueIf you set this parameter to false, the table of contents will not be visible when you print the page.styleNo noneThe style of bullet point for each list item. You can use any valid CSS style. For example: none – No list style is displayed.circle – The list style is a circle.disc – The list style is a filled circle. This is the typical bullet list, and is the one we are using in this example list.square — The list style is a square.decimal — The list is numbered (1, 2, 3, 4, 5).lower-alpha — The list style is lower case, alphabetised (a, b, c, d, e).lower-roman — The list style is lower-case roman numerals (i, ii, iii, iv, v, vi).upper-roman — The list style is upper-case roman numerals (I, II, III, IV, V, VI).maxLevelNo 7Maximum heading level. Use this parameter to select the highest heading level to include. For example, a value of 2 will list h1 and h2 levels, but will not include h3 and below.indentNo (None) type = list). 10px will successively indent list heading groups by 10 pixels. Level 1 headings will be indented 10px, and level 2 headings by an additional 10px, and so on.minLevelNo 1Minimum heading level. The heading level at which the table of contents will start. For example, a value of 2 will list h2, h3, and h4 headings, but will not include h1 headings.classNo (None) A CSS class name. If you have a custom style sheet, you can use this parameter to output the table of contents with the specified class attribute. excludeNo (None) .*\.[1//2]typeNo listlist – displays the table of contents in a vertical list.flat – displays a horizontal series of links. For example: [Heading 1] [Heading 2] [Heading 3].outlineNo falseA value of true will apply outline numbering to the headings as displayed in the table of contents. For example: 1.1, 1.2, 1.3.separatorNo bracketstype = flat). Use this parameter to style the display of a flat list. brackets – Each item is enclosed by square brackets: [ ].braces – Each item is enclosed by braces: { }.parens – Each item is enclosed by parentheses: ( ).pipe – The items are separated by a pipe: |***. If using a custom separator, be aware that text displays exactly as entered, with no additional white space to further separate the characters.includeNo (None) .*\.[1//2]
Example:
This example shows a list-type table of contents. This example shows a flat table of contents.{toc:printable=true|style=square|maxLevel=2|indent=5px|minLevel=2|class=bigpink|exclude=[1//2]|type=list|outline=true|include=.*}
{toc:printable=true|maxLevel=2|minLevel=2|class=bigpink|exclude=[1//2]|type=flat|outline=true|separator=pipe|include=.*}
Notes
- The 'Required' column indicates whether the parameter is required on data entry. If the parameter is not supplied, Confluence will insert default values as indicated in the 'Default' column.
- Wiki markup is not case sensitive. For example, you can specify a parameter name of
sortByorsortby. - For a few macros in wiki markup, the default parameter may be unnamed. The examples on this page show the macros concerned. In such cases, the unnamed parameter is always the first parameter specified.
- A request from the Atlassian technical writers about comments and feedback: We would like to distinguish between the documentation of the current solution (this page) and any discussion of the solution and possible changes to Confluence wiki markup and/or the XHTML-based storage format. If you have a suggestion for, or correction of, this documentation, please add your suggestion to this page. If you have feedback on the Confluence markup, storage format and related functionality, please add your suggestion to the page titled Confluence 4 Editor - Customer Feedback. Thanks.
