Copy or move a variable between templates
Variables live inside the template that hosts them. If you want to use the variable in multiple templates, there are two options:
- Add the template containing the variables you want as a reference
- Duplicate the variable
Add the template containing the variables you want as a reference
This links the current template to the template containing the variable. Changes made to the variable will be automatically propagated to all the templates using the variable.
This is the best option when you want to define your variable once and reuse it multiple templates. When you need to change the variable, you can make the changes only once.
Duplicate the variable
This creates a copy of the original value. The two variables will be independent.
How to duplicate a variable
- In the template editor, Open the Manage variables window by clicking on Variables → Manage (or press F8)
- If the variable you want to add is in a different template, add it as reference
Right-click on the variable you want to create a copy of and click
PhraseExpander has now created a duplicate. If two variables have the same name, PhraseExpander always gives precedence to the local variable.
If you have duplicated a referenced variable, remove the referenced template by clicking on
Edit referenced templates and removing the template.