Template:Str rep
From WikiAlpha
Revision as of 03:27, 27 March 2017 by LuisAnton (Talk | contribs) (Created page with "{{#invoke:String|replace|source={{{1}}}|{{{2}}}|{{{3}}}|1}}<noinclude> {{Documentation}}</noinclude>")
{{#invoke:String|replace|source={{{1}}}|{{{2}}}|{{{3}}}|1}}
[edit] [ ] Template documentation
30px | Uses Lua: {{safesubst:#invoke:list|bulleted}} |
This template is used on 419,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages or in your own user subpage. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
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)
The above documentation is transcluded from Template:Str rep/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |