Variable macro

Variable (Capable) is an inline macro: it sits inside a sentence rather than on its own line, and shows the current value of one variable.


#Insert it

  1. Edit the page and put the cursor where the value belongs.

  2. Type /variable, or open the macro browser and search for Variable, then choose Variable (Capable).

  3. In Choose a variable, click a variable, or press Enter on a highlighted row. The choice saves straight away and a preview of the value appears at the top.

  4. Publish the page.


#The picker

Part

What it does

Space variables

Variables kept in this page's space.

Global variables

Variables any page can use.

Search variables

Filters by name, description and value.

Create

Creates a variable in the current section without leaving the page. An empty section offers Create variable, and the new variable is chosen automatically.


#Change which variable it shows

Edit the page, open the macro's settings and click a different row. The macro stays where it is in the sentence. Reopening the settings after a variable has been renamed also refreshes the name the macro keeps for authors.


#A few things that catch people out

  • The macro remembers the variable's ID, not its name, so renaming the variable never breaks the page.

  • On the Standard edition the settings show Variables are available on the Advanced edition instead of the picker. Existing macros keep showing their values.

  • The macro is not offered in Capable's own macro lists; insert it from the editor or the page byline.



One macro, every page.