Template:Str rep
Jump to navigation
Jump to search
{{{1}}}
This template uses Lua: |
This template is used on 270,000+ pages, or roughly 521% 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, and on approximately 270,000 pages, or roughly 521% of all pages. Changes to it can cause immediate changes to the Wikipedia user interface. 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. Please discuss 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)