Template:Substring
Jump to navigation
Jump to search
The Template:Substring extracts a specified substring from a text string, for a specific offset and length. The beginning of the string is offset location 0 (zero).
Usage
{{substring|<string>|<offset>|<length>}}
Example: {{substring|abcdefg|2|3}} gives: cde, as 3 characters from offset position 2, in string "abcdefg".
| The above documentation is transcluded from Template:Substring/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |