साँचा:Replace/doc
नेविगेशन पर जाएँ
खोज पर जाएँ
{{
साँचा:namespace detect
| type = notice
| image =
| imageright =
| class =
| style = margin-bottom:1.0em;
| textstyle =
| text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page.
| small =
| smallimage =
| smallimageright =
| smalltext =
| subst =
| date =
| name =
}}
![]() | This template uses Lua: |
Usage
{{replace |string |target |replacement [|count=n]}}
Returns string with the first n occurrences of target replaced with replacement. Omitting साँचा:code will replace all occurrences.
Examples
{{replace |One two two three two four twotwo five |two |NINE}}
→ साँचा:replace{{replace |One two two three two four twotwo five |two |NINE |count=2}}
→ साँचा:replace
See also
- साँचा:tl, which replaces only the first occurrence of a string.
साँचा:String-handling templates