Template:Substr any/doc

From Toon Wiki
Revision as of 04:03, 26 January 2012 by imported>ToonWikiBot (Imported from Avatar Wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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).