Variables are pre-set, non-formatted pieces of content that you can insert into a
- Open the
document or topic.
- Place your cursor where you want to add a variable.
Do one of the following, depending on the part of the user interface you are using:
Ribbon Select the Insert ribbon. In the Single-Source section select Variable.
- Local Toolbar Click .
- Keyboard Shortcut On your keyboard press CTRL+SHIFT+V.
- Right-Click Right-click in the editor and select Insert>Variable. This context menu option is available only when your cursor is located in certain places in the editor (e.g., not in a drop-down effect).
The Variables dialog opens, with the variable set(s) on the left and the variables associated with the selected set on the right.
- On the left, select the appropriate variable set.
- On the right, select the variable you want to insert.
Click OK. The variable is added, with brackets surrounding it. The bracket shows the variable name and the variable definition (as long as markers are turned on and the set marker width allows it).
You can adjust the marker width from the Show tags button to see more or less of the variable information, and you can also tell Contributor to turn off the variable names so that you only see the variable definition.
- Click to save your work.
Note: This feature is not supported for MadCap Lingo review package (LIREV) files.
Note: When you insert a custom date/time variable, it will update using one of the following options.
- Manually The variable displays the date and time when the variable was created. It will display the date and time when the variable was most recently updated. You can manually update this variable type in Contributor.
- On File Creation The variable displays the date and time that you created the file.
- On File Save The variable displays the date and time that you last saved the file.
- On Project Save The variable displays the date and time that you last saved all the files in the project.
- On Build The variable displays the date and time of the most recent project build. This is the default date/time variable type.
This is set when the variable is created.
Note: System variables use the language set in a tag, in the target, or at the project level. For example, you might have an English operating system, but in your project you have French set as the language. If your topic uses a date/time variable, the day and month will display in French. Contributor will also adjust the format of the variable if necessary (e.g., date first vs. month first).