It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a way to specify variables as macro parameters in Confluence 5 templates

In Confluence 4 I had a number of very useful templates that passed variables to macro parameters. For example a trivial example of a template like this is:

Specify Page Name to Include: @PAGE@
{excerpt-include:@PAGE@}

However in confluence 5 with the new rich text template editor, I can not see how I can do the same. I've tried entering $PAGE or @PAGE@ as a parameter, and but that is ignored. I've tried using the source editor add on - but that does not seem to work with templates.

This feature is very useful to me - is there any way to do it in Confluence 5?

3 answers

Duplicate is gone... 404 page

Bob's question did speak to this, but also wiki markup.

To speak specificly to Daniels question, yes you can still insert variables in confluence 5, just use the "$ variables" drop down, or start typing $blah. below is the docs for conf 5 and an example i tried to validate.

https://confluence.atlassian.com/display/DOC/Adding+a+Template

The key words in the question are: as macro parameters

Yeah, sorry, ten minutes after walkign away I realized what you both meant. I figured my answer was too obvious!

Yes it is a duplicate, I'll vote on your question.

Suggest an answer

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

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

3,910 views 15 38
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