I've had an issue adding multiple instances of the same variable to a template in Confluence 6.15.8. When I select an existing variable name from the insert dropdown it adds the variable with an incrementing number of $'s prepended (i.e. first instance is $var1, second usage gets called $$var1, etc.)
Each one needs to be entered separately, which feels like a bug. Any ideas?