Jump to content

Template:Str rep/doc: Difference between revisions

From SeptemWiki
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


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)