Template:Str rep/doc: Difference between revisions
Appearance
Created page with "{{metatemplate}} === Usage === <nowiki> {{Str rep|<string>|<find>|<replacewith>}} </nowiki> Returns <string> with the '''first''' occurrence of <find> replaced with <replace..." |
|||
Line 10: | Line 10: | ||
=== See also === | === See also === | ||
* {{tn|Replace}} - to replace ''all'' occurrences (Lua based) | * [[Template:Replace|{{tn|Replace}}]] - to replace ''all'' occurrences (Lua based) |
Revision as of 17:10, 9 April 2016
![]() |
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)