Access Keys:
Skip to content (Access Key - 0)

page-info macro

The {page-info} macro allows you to display several useful pieces of information about the page in a simple format

Overview

This macro allows you to display the following information in various configurations:

  • Who created the page, and when
  • Who last modified the page, and when
  • A list of everyone that has edited the page
  • A list of everyone who has added comments to the page
  • The current version, and date, of the page
  • A list of all versions of the page, and "diffs" between versions
  • Page title and "Tiny URL"
  • A list of all labels associated with the page

Macro Syntax

Add the macro to your page as follows:

{page-info:displaytype|page=Home|dateformat=dd/MM/YY HH:mm}

Parameters

Parameter Default Required Notes
default   The default "displaytype" parameter is the name of the piece of information you wish to see displayed, this may be one of the following:
  • created-user - displays the user who created the page
  • created-date - displays the date the page was created
  • modified-user - displays the user who last modified the page
  • modified-users - displays a comma separated list of all the users who have modified the page
  • modified-date - displays the date the page was last modified
  • participants - displays a comma separated list of the users who have modified or commented on the page
  • commenters - displays a comma separated list of the users who have commented on the page
  • current-version - displays the most recent version number for the page
  • versions - displays a comma separated list of version numbers, clickable to take you to view that version
  • diffs - displays a comma separated list of version numbers, clickable to take you to view the differences between that version and the next version
  • labels - displays a comma separated list of labels, clickable to allow you to view other pages which posess that label
  • tinyurl - displays a tinyurl link to the specified page
  • title - displays the title of the specified page
  • pageId - displays the Id of the current page
page current page The name of the page whose information you wish to display, if none is given then the current page is assumed. You can also use @self to refer to the current page and @parent to use the parent page.
dateFormat Default Date Format Allows setting the display format for the date and time displayed, when do dat is to be displayed this parameter has no effect. Details of the pattern syntax may be found Date Formats.
type flat For those display types that produce a list of information, you can specify:
  • flat - display a comma separeated list (default)
  • list - display a bullet list
prefix   When displaying a version numbers you may use this parameter to insert a prefix before the version number. Has no effect with those display types which do not display a version number.
reverse false When displaying a list of items, you can set this parameter to true to reverse the order of those items.
count show all If you want to limit the number of items shown in a list (eg. versions and diffs) define the number of items to be shown with this parameter.
showComments false Display the comments that accompany an update.
showVersions true Display the version numbers.

License and Availability

See: [archive:Page Information Tools Plugin]

Examples

Displaying the current page's author

Displaying the current page's creation date

Displaying author and date

Displaying the name of the person who last modified the current page

Displaying the date that the current page was last modified

Displaying last modifier and modification date

Formatting dates

Listing the participants in a page

Listing users that have commented on a page

Listing users that have modified the page

Displaying the current page version

Listing the versions of the page

Reversing list order and limiting number of items

Prefixing the version number

Displaying list information as a bullet list

Displaying "diff" links

Displaying "Tiny URL" for a page

Displaying page title

Listing the labels on the page

Showing information about another page

Showing Edits and the accompanying comment

Showing Edit Comments without version numbers

See Also



Ask questions, get help and report bugs & issues on our Community Site

View old comments


Adaptavist Theme Builder Powered by Atlassian Confluence