The Page Info macro makes it easy to display information about the page it is used on. This could include information such as page versions, differences in versions, contributors and many other options listed below.
Click Insert > Other Macros.
- Select the Page Info macro from the provided list.
Complete the desired fields:
Parameter Description Type Default Required
See the supported Information Types table below.
The name of the page whose information you want displayed. If no name is given, then the current page is assumed.
Options $self and $parent can be used to refer to the current page and the parent page respectively.
Set the display format for the date and time displayed. When no date is to be displayed this parameter has no effect.
This uses Confluence’s DateFormatter API, which in turn uses a java.text.SimpleDateFormatter. See the Oracle documentation on how to create your own custom date format string.
MMM dd, yyyy - hh:mm
Show list information in different formats.
Options are Flat to display a comma separated list or List to display a bullet list.
Inserts a prefix before the version number. This field has no effect on display types without a version number.
Reverse the list item when the option is selected.
Limit the number of items shown in a list (eg. versions and diffs).
Display the comments that accompany an update.If you select this option, the comments refer to the page version comments (entered in the What Did You Change? field) which can be added before saving the page.
Display the version numbers.
Supported values for the Information Type field follow:
Information Type Description
The user who created the page.
A comma-separated list of the users who have commented on the page.
The date the page was created.
The most recent version number of the page.
A comma-separated list of version number links. These are clickable to view the differences between versions.
A comma-separated list of labels. These are clickable to view other pages that possess the same label.
The user who last modified the page.
The date the page was last modified.
A comma-separated list of all the users who have modified the page.
The ID of the current page.
A comma-separated list of the users who have modified or commented on the page.
The title of the page.
A tiny url link to the specified page.
A comma separated list of version numbers. These are clickable to view the selected version.
The following image is an example of a selected field:
The following image shows the output when Created By is selected for the Information Type field. In this example, the page was created by the admin.
The following two images show how the Page Info macro can be used to populate information.
Tips for the Page Info Macro
Formatting Dates: The Page Info macro supports standard date formats which allows the user to format the date with various combinations. For example the following screenshot shows how to use "dd-MMM-yyyy" as the date format.
Examples of formatted dates follow:
Page Edit Mode Page Output
Displaying Versions and Diffs: The versions and differences ("Diffs") are clickable to view a particular version and difference.
View Page Information for a Different Page: Provide the name of the page for which information will be displayed. The following example shows the page creator for page P2. It is also possible to use "$parent" [without double quote] to refer to the parent page of the page that contains the macro.