Documentation:ReplaceSet

From Constant Noble
Jump to navigation Jump to search
This is the documentation page for Module:ReplaceSet. Editors are welcome to test this module in its dedicated sandbox.
Lua This documentation page uses Lua:

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.

From Wikipedia
From Wikipedia

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.