Template:Str rep

From WikiAlpha
Jump to: navigation, search
The below content is licensed according to Creative Commons Attribution-ShareAlike License contrary to the public domain logo at the foot of the page. It originally appeared on http://en.wikipedia.org. The original article might still be accessible here. You may be able to find a list of the article's previous contributors on the talk page.
{{#invoke:String|replace|source={{{1}}}|{{{2}}}|{{{3}}}|1}}
[edit] [purge] Template documentation

Usage

{{Str rep|<string>|<find>|<replacewith>}}

Returns <string> with the first occurrence of <find> replaced with <replacewith>.

Example

  • {{str rep|Dogs chase cats|chase|love}} = {{#invoke:String|replace|source=Dogs chase cats|chase|love|1}}

See also

  • {{Replace}} - to replace all occurrences (Lua based)


Template:String-handling templates