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
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,364 views 97 8
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you