Create a Template

In Confluence, there are two categories of page templates:

  • Space templates: These page templates are available in a specific space only. If you have space administrator permission, you can define templates via the space administration screen.
  • Global templates: These page templates are available in every space on your site. If you have Confluence Administrator permission, you can define global templates via the Confluence Administration Console.

Add a space template

  1. Go to the space and choose Space tools > Content Tools from the bottom of the sidebar
  2. Choose Templates Create new template.

If your space uses the Documentation theme:

  1. Choose Browse > Space Admin from the header

    Note: The Space Admin option appears only if you have space admin permissions, or if you're part of the 'confluence-administrators' group.

  2. Choose Templates from the space administration options.
  3. Choose Create new template.

Add a global template

  1. Choose the cog icon , then choose General Configuration under Confluence Administration
  2. Choose Global Templates and Blueprints in the left-hand panel
  3. Choose Add New Global Template

Check out the article How to document releases and share release notes to see how helpful creating templates in Confluence can be.

The template editor

When you create or edit a template, you'll be using the editor in much the same way as when you edit a page or blog post. In addition you can add variables, which will produce a form for data collection when anyone adds a page based on the template.

Screenshot: The template editor with an image, table, text, and variables

Screenshot: The form displayed when you create a page based on the template

Template variables

When you add variables to your template, they will act as form fields. When you create a page based on a template, you'll see a text entry box for each field. Enter data into each field, and it'll be added to the page.

You can add the same variable more than once in the same template, which is useful if you need the same information in more than one place on the page.

To insert a variable into a template:

  1. Choose Template > New Variable from the editor toolbar (or choose an existing variable to add it to the page)
  2. Enter a name for the variable
  3. Press Enter (by default this will create a single-line text input field)

To change the variable type, click the variable placeholder and the variable's property panel will appear. Choose one of the variable types: TextMulti-line Text, or List.

You can change the number of lines and width in characters of a Multi-line Text field. If you choose List, enter each of the items in your list, separated by commas.


Hint: Type $ and the variable name, then press Enter to add a new variable or to select an existing variable from a list of suggestions. The suggestions dialogue shows variables already defined in this template.


If you'd like all pages created using this template to have one or more labels, choose the labels icon  next to the breadcrumbs at the top of the page to add them.

Images and other attachments

You can't upload an image or other file into a template directly. First you'll need to upload the file to a page in your site, then in your template, choose  Insert > Files > Search on other pages to embed the file or image. 

Instructional text

Instructional text is placeholder content in a template, and is only visible while you're editing the page. Use it to give guidance to whoever is creating a page from the template.

To insert instructional text:

  1. Choose Template > Instructional Text in the toolbar
  2. Type in your instructional text (for example, Insert an image of the interface here.)

Instructional text appears in italics with a shaded background, to distinguish it from normal paragraph text.

You can also change the placeholder type from Text to either:

  • User mention – Opens the user mention dialogue.
  • JIRA Macro – Opens a dialogue that allows you to create a new JIRA issue, or search for one or more JIRA issues to include on the page.

Add a description to your template

The template description displays in the 'Create' dialog, and is useful for explaining the purpose of your template to other users.

To add a description to a template:

  • Go to the space or global templates page (as described above)
  • Choose the Edit icon in the 'Description' column
  • Enter your description and choose Save

Edit or delete a template

If you need to change anything about your template, or want to delete it, navigate to either your space or global template (as described above) and choose either Edit or Delete.


  • Page templates are used only when adding a page. It is not possible to apply a template to an already-existing page. Once a page has been added using a template, the template is no longer linked to the page. All further editing is performed as if the template was never used. Some plugins provide enhanced template functionality. You can search the Atlassian Marketplace for template add-ons.
  • When you use a Table of Contents macro in a template, you'll see an error when you preview the template, but the Table of Contents macro works on the pages that people create from the template.
  • The editor for templates is available only in Confluence 4.3 and later. Please refer to the earlier documentation for a description of the wiki markup editor templates.
  • Confluence also provides 'system templates' containing content like the site welcome message and default space content. See Administering Site Templates.

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport