Replace
From Halal Explorer
Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted
This documentation is transcluded from Template:Replace/doc. (edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Usage
{{replace|string|target|replacement|count=n}}
Returns string with the first n occurrences of target replaced with replacement. Omitting Template:Code will replace all occurrences. Space counts as a character if placed in any of the first three parameters.
Examples
{{replace|One two two three two four twotwo five|two|NINE}}
→ Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted{{replace|One two two three two four twotwo five|two|NINE|count=2}}
→ Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted
Space
{{replace|One-two two-three two-four twotwo-five|-|—}}
→ Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted{{replace|One-two two-three two-four twotwo-five|- |—}}
→ Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted