Template:Str rep
From WikiAlpha
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. |
[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. |