Template:Str rep/doc
Appearance
![]() |
This is a metatemplate; that is, a template that will rarely be used directly in articles, but rather used in other templates which will be used directly. |
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}}
= Script error: No such module "String".
See also
- [[Template:Replace|Template:Tn]] - to replace all occurrences (Lua based)