Template:Str rep/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Str rep. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template is used on 531,000+ pages, or roughly 1043% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This template is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please discuss 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. Cats chase mice|chase|love}}
= Dogs love cats. Cats chase mice
See also
- {{Replace}} - to replace all occurrences (Lua based)