Template:replace/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Documentation for Template:replace. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This template performs string replacement. It is a wrapper for function replace from Module:string.

Parameters

[edit]
|1= (required)
The string to search
|2= (required)
The string or pattern to find within source
|3= (required)
The replacement text
|count=, |4= (optional)
The number of occurrences to replace, defaults to all.
|plain=, |5= (optional)
Boolean flag indicating that pattern should be understood as plain text (if true) and not as a Lua style regular expression, defaults to true