DocMarkupVariables

As part of markup processing TBWiki expands markup variables in the markup text.

This is done using a python string replacement, and the functionality is provided by the "data_class" class.

These are mostly used in themes and by system code.

How to reference [edit section]

The markup on a page can reference these variables, by putting a python named-string macro in the markup.

For example, to reference the 'asctime' value, the page should have the following markup:

The time is: %(asctime)s

With the resulting text being:

The time is Sun Apr 28 11:04:34 2024

These can be used in the header and footer pages for a theme, and are placed inline with the HTML markup.

Variables [edit section]

Here is a list of variables and their common usage:

Configurable items [edit section]

Note that many of these items come directly from variables defined in the wiki instance configuration. See DocConfiguration for more information.