Revision 4077242 of "Template:Substr any/doc" on simplewiki{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
The substring '''Template:Substr_any''' extracts a substring of any characters, including accented letters, for a specified offset and length.
=== Usage ===
: <nowiki>{{substr_any|</nowiki>''text''|''offset''|''length''<nowiki>}}</nowiki> = Substring of ''text'' starting at ''offset'' and containing ''length'' characters.
Offset from 0: the first character is numbered 0, and so on. The ''offset'' + ''length'' must be less than 50. Operates on an extended character set, including accented letters, if listed in [[Template:Str index/getchar]].
=== Examples ===
: <nowiki>{{substr_any|ABCDEFÄÖÜ |5|2}}</nowiki> returns 2 letters "{{substr_any|ABCDEFÄÖÜ |5|2}}".
: <nowiki>{{substr_any|ABCDEFÄÖöÜüÑñß |8|4}}</nowiki> returns the 4 characters starting at the 9th, "{{substr_any|ABCDEFÄÖöÜüÑñß |8|4}}".
: <nowiki>{{substr_any|XYZÈèĖėÇç |5|10}}</nowiki> returns 4 letters "{{substr_any|XYZÈèĖėÇç |5|10}}" as too short for 10.
=== See also ===
{{String templates see also}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:String manipulation templates]]
[[de:Vorlage:Str sub]]
[[id:Templat:Str sub]]
[[arz:قالب:Str sub]]
[[ja:Template:Str sub]]
[[pt:Predefinição:Str sub]]
</includeonly>All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://simple.wikipedia.org/w/index.php?oldid=4077242.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|