Template:Str rep/doc
From WikiAlpha
< Template:Str rep
Revision as of 03:30, 27 March 2017 by LuisAnton (Talk | contribs) (Created page with "{{Documentation subpage}} {{lua|Module:String}} {{High-risk|419000+}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> === Usage === <nowiki> {{Str re...")
This is a documentation subpage for Template:Str rep. It contains usage information, categories and other content that is not part of the original template page. |
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)
Template:String-handling templates