Template:Escape/doc

Usage
While primarily intended for use by other Lua modules, it can provide an alternative to multiple  tags when part of the desired output should be executed.

For example, demo normally requires the demonstrated template to be wrapped in . However, you may want part of the value to be shown in the 'pre' tag to be processed before it reaches demo, such as in the example below where the result of  is shown inside the  tags.

Note how the * character, used to break up the {{|undefined to prevent execution, is removed and how the ; character is replaced by {{code|{{!}}}}.

Non-execution
After removal of the escape chars, the returned text is inert; i.e. not executed even without . (The above example is executed only because demo forces execution.)

For example, setting kill with \{\{done\}\} as the first parameter and nothing else will simply cause the default escape character \ to be removed: