...
Now we create a page and will place there a Smart Templates macro and will reference this template
And we will also put Confluence standard page properties macro where we define a "myname" variable / property
The variable in the Confluence template will be substituted with the value "Alex", as page properties macro defines this variable here
And the resulting page created by Smart Template will look like this
You can define multiple page properties (as table rows) and multiple sets of page properties (multiple "page properties" macros)
In addition to use user defined page properties there is always these variables in the context present (can be used inside Confluence template)
...