Template:Substr any/doc

From Toon Wiki
Description
This template extracts a substring of any characters, including accented letters, for a specified offset and length.
Dependencies
Syntax
Type {{substr_any|<text>|<offset>|<length>}} somewhere.
Sample output
{{substr_any|ABCDEFÄÖÜ |5|2}}  returns 2 letters "FÄ".
{{substr_any|ABCDEFÄÖöÜüÑñß |8|4}}  returns the 4 characters starting at the 9th, "öÜüÑ".
{{substr_any|XYZÈèĖėÇç |5|10}}  returns 4 letters "ĖėÇç" as too short for 10.
This page uses Creative Commons Licensed content from Wikipedia (view authors).