Template:Substring/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Substring. It contains usage information, categories and other content that is not part of the original template page. |
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".