Template:MacroCode

Use this template to contain verbatim macro code in the Macros recipes pages.

This is similar to Template:Code, but without any syntax highlighting.

This template essentially creates a block of text surrounded by HTML  tags, which the Addon Manager downloads and extracts.

Since content that includes an equals sign is interpreted as a variable, you must specify the   parameter explicitly to avoid issues.

Example:

Result:

Inside the code, neither the double nor the triple braces, nor the vertical bar   are allowed because these are interpreted in special ways by the wiki software.

The  tags can be added explicitly to allow displaying these special symbols.

Result:

We can also display all symbols by using explicit  tags.

a = {{"A"}, "B"} if a:   Q = Qt.Ok | Qt.Cancel

Result:

a = {{"A"}, "B"} if a:   Q = Qt.Ok | Qt.Cancel