Magik >
User Defined Templates Variables preference page allows to define new variables, which later can
be used in the templates.
| Action | Description |
|---|---|
| Add | Opens User Defined Template Variable dialog to add new template variable. |
| Edit | Opens User Defined Template Variable dialog to edit selected template variable. |
| Remove | Removes currently selected template variables. |
| Import | Imports template variables from the file system. |
| Export | Exports all selected template variables to the file system. |
Every variable can be enabled or disabled.

The dialog is used to add or edit template variable.

| Option | Description |
|---|---|
| Name | Template variable name. |
| Description | Template variable description. |
| Value | Template variable value. The value can be a single value, or list of semicolon separated values. |
| Show as list of proposals | Select to display multi-value template variables as a list while resolving the variable in the editor. |
Variable value can be a single value or list of values. If you select Show as list of proposals option in User Defined Template Variable dialog for a multi-value variable its values are shown as list of proposals when it is resolved in an editor.
For example, for a template as below:
#Author: ${ProgrammerName}
def_slotted_exemplar(:${class}, {${new_slots}}, ${optional_parents})
$$${cursor}
ProgrammerName variable is resolved as in the screeshot:


