Documentation:ReplaceSet
- This is the documentation page for Module:ReplaceSet. Editors are welcome to test this module in its dedicated sandbox.
A stand-in for the eponymous extension (which is currently unsupported by Miraheze per phab:T7667), {{ReplaceSet}} replaces matches of multiple patterns in a given string with given replacements. For each replacement instance, the pattern matching at the lowest position is chosen. If there are multiple such patterns, then the one specified earliest in the pattern list is chosen.
Usage
{{ReplaceSet|input|plain=yes (optional)|pattern1| replacement1|pattern2|replacement2... }}
If plain=yes
is specified, then the patterns and replacements are treated as plain text, otherwise as Lua Unicode patterns.
Part or all of this page uses material from Template:MultiReplace, originally located at Wikipedia. The list of original contributors can be found in its page history. Text on Wikipedia is available under the Creative Commons Attribution-ShareAlike 3.0 license; additional terms may apply. |