Template:Substr any

From Toon Wiki
Revision as of 03:49, 26 January 2012 by imported>ToonWikiBot (Imported from Avatar Wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation (for the above template, sometimes hidden or invisible)
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).
Visit Template:Substr any/doc to edit this text! (How does this work?)
Done editing it? Refresh this page! (Why?)