Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How do I add variables in a Confluence template?

I want to add variables to my template so that the user will be prompted to enter values when creating a page from the template.


5 answers

Thanks just fat fingered the keyboard. Got it figured out

Shannon S Atlassian Team Dec 14, 2018

Thank you for letting me know, Andrew!

Take care,


3 votes
Shannon S Atlassian Team Aug 15, 2018

Hi Bob,

You can add variables following this procedure:

In summary,

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)

Please read the entire article for the full set of instructions.

Let us know if you have any trouble!



Hmm I might be missing this but when I add a variable it just puts a ? mark on the screen. Is there any other way?

Shannon S Atlassian Team Dec 13, 2018


Can you tell me what version of Confluence you are using when this happens?


How do I "reuse" an existig variable on the same template. Copy and paste and else?

Like Andrew Ralon likes this

or how do I define gloabl placeholders for several templates/bluepringts

Is there any way to define areas of dates... like a week from Monday to Friday defined by one selscted date or the creation date or is there a list of the possibilities?

Is there a way to have a pagetree where the mother page shows the content of the newest or upcoming time area? Like a mother page that shows in a 4 tables the entries of that table of the 4 subpages? 

Have you tried solving this with a page property macro? You add a table on your page and have another page with the page properties Report macro showing all the attributes in a table.

I did it with ConfiForms and several ITTTF Fields that calculated the date of the next and the next next day to insert those values in the table header.

I wonder how the standard templates manage, that there is the name of the author. Is there any way, that I can achieve this in my own template?

Template Placeholder should be working

No problem and thanks I appreciat the help

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

349 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you