Create Page

The Create Page macro helps users to create pages in the right place, with the right template and correctly formatted page title.

  1. Click Insert > Other Macros.

  2. Select the Create Page macro from the provided list.

  3. Complete the desired fields.

    ParameterDescriptionTypeDefaultRequired
    ParentBy default, the created page will use the current page as its parent. However, you can specify a different parent page by supplying the page title. This field also accepts the variables: $self, $parent, $username, $fullname, $year, $month and $day.string$selfNo
    TitleSpecifies the title of the new page. This field also accepts the following variables: $parenttitle, $ident, $username, $fullname, $year, $month and $day.stringNoneNo
    From PageSpecifies an existing page from which the new page will copy contentstringNoneNo
    LabelsAdd labels to the newly created page. Accepts several labels in a comma separated list. The following variables can be used: $parenttitle, $pagetitle, $username, $fullname, $year, $month and $day.stringNoneNo
    Title PrefixPrefix to be applied to the page title given by the user.stringNoneNo
    Title SuffixSuffix to be applied to the name given by the user.stringNoneNo
    Target ModeOptions are 'view' or 'edit'. Whether to go to view or edit mode when creating the page.enumView ModeYes
    Template

    The name of the template that will be used when creating the new page.

    If you select a template with variables, you are redirected to a Page Template Wizard when you use the macro to create a new page.

    stringNoneNo
    AUI ClassOptional AUI Class to help with styling. Use "aui-button" to represent a button or "aui-message" for an alert style message. More information can be found at https://docs.atlassian.com/aui/.stringNoneNo
    CSSOptional basic CSS to help with styling. Please provide css in a comma separated list, for example: "font-size: 20px, background-color: red". More information can be found at https://www.w3schools.com/css/default.asp.string (csv)NoneNo
    Indent IndexAllow the $ident parameter to start from a specific number.intNoneNo
    Add SpaceAdd a space in between prefix and postfix variables.booleanTrueNo
    Prompt TitleCustomise the title used in the prompt dialog. If left empty then the title will be Please enter the new page title.stringNoneNo
    Suppress NotificationSuppress notification while creating page.booleanFalseNo
    Open In a New TabOpen the created page in a new tab.booleanFalseNo

    Variable Descriptions:

    VariableDescription
    $parenttitlethe title of the parent page.
    $identa number which increments each time a new page is created if the title exists.
    $incrementa number which increments each time a new page is created.
    $usernamethe username of the user that created the page.
    $fullnamethe full name of the user that created the page.
    $yearthe current year.
    $monththe current year.
    $daythe current day.
    $selfthe current page.

    Labels must obey naming restrictions imposed by Atlassian. The following characters will be removed (:, ;, ,, ., , ?, &, [, ], (, ), #, ^, *, @, !, ' ' spaces ).

  4. Supply the text that is going to be used to display the Create page link.

  5. Save the Confluence page.
  6. To create the new page, select the link.

    This is when the Page Template Wizard appears if you selected a template with variables. The wizard gives you the option to fill in variables before the page is created. When you're ready for the finished page, select Next to see the created page.

    If you select Open in a New Tab when you create your macro, the Back button on the Page Template Wizard does not work.