Template:Replace/doc
Jump to navigation
Jump to search
Usage
Template:((replace |string |target |replacement [|count=n]}}
Returns string with the first n occurrences of target replaced with replacement. Omitting count
will replace all occurrences.
Examples
{{replace |One two two three two four twotwo five |two |NINE}}
→ {{#invoke:String|replace|source=One two two three two four twotwo five|two|NINE|count=|plain=1}}{{replace |One two two three two four twotwo five |two |NINE |count=2}}
→ {{#invoke:String|replace|source=One two two three two four twotwo five|two|NINE|count=2|plain=1}}