Smart Templates add-on is good at organising the contents from multiple pages, but it can do a lot more.
It works with Confluence templates and with Page properties which helps you to pass variables to the templates.
Here is how it works
Create a template in Confluence (it can be global template or space-specific template). See Atlassian documentation
You can define variables in the templates, we will define a one called "myname"
Here is how our template will look like
Now we create a page and will place there a Smart Templates macro and will reference this template
In addition to use defined page properties there is always these variables in the context (can be used inside Confluence template)
Variable name |
---|
spaceKey |
pageId |
pageTitle |
Variable names are case-sensitive!