Template:Replace/doc

From TibiaCraft
Jump to navigationJump to search
This is the documentation page. It should be transcluded into Template:Replace. See Template:Documentation for more information.
This template uses Module:Replace, a script written in Lua.

Performs multiple text replacement on a string. Replacer term is pseudo-regex.

Examples

This... is a string!
{{replace|This... is a string!| is = was | string = template parameter | ! = ? }}
Thwas... was a template parameter?
{{replace|This... is a string! | [A-Z] = X | [a-z] = _ | [!.] = ^ }}
X___^^^ __ _ ______^