Inserting tags

To insert tags type their name enclosed in double curly brackets:. Using spaces in the name of the inserted tag might cause problems in some circumstances, it's suggested to use underscores instead.

There are many reasons to insert tags, one example being a character sheet for the user to view. Many RPGs keep track of statistics like speed and intelligence, and these stats can change based on interactions in the game. Editors can see the values of all tags in their story in a menu, but readers do not have access to this menu. To create a character sheet, the values of tags keeping track of these stats need to be inserted.

Twig
In Android version 1.8.35 templating was added. Templating allows for more complicated constructs using similar syntax. For example, using an if-statement to display different text based on the value of a tag. This is done with Twig syntax, which is. An example usage is: Before. {% if tag == 1 or tag == 3 %}One or three!{% else %}Not one or three.{% endif %} After. In most cases, the text seen by readers would be: “Before. Not one or three. After.” In the special cases that the tag has a value of either 1 or 3, the text seen by readers would be: “Before. One or three! After.”

Settag
Templating also offers a different, more advanced way to change tags. Using the  macro a tag can be given a more complex value than using effects. The syntax of setting a tag this way is: {% settag "tag_name" value calculation %} Important to notice is the quotes around the tag's name that indicate which tag to update.