For faster navigation, this Iframe is preloading the Wikiwand page for
Predloga:Str index any.
The Template:str_index_any extracts a specified nth character from a string, even allowing for accented letters to be included in the string.
- ((str index any|text|n)) = Returns the n-th character of text.
Supports a larger character set, allowing the text to have accented letters. Returns an error message for unknown characters. Returns   for a blank space.
- ((Str index any|0123456789ABCDEF|15)) → E
- ((Str index any|ÁBĆĎÉf-ABCDEF|4)) → Ď
- (( Str len |(( Str index any |a b|1)))) → 1
- (( Str len |(( Str index any |a b|2)))) → 5
- (( Str len |(( Str index any |a b|3)))) → 1
The last example shows extraction of letter "b" with string length as 1. The prior example extracts a blank but considers the length as 5 for the 5 characters " " even though there is only 1 space, and hence, ((str len| )) → 5. If surrounded by 2 other characters, then the length might be totalled incorrectly as 7 (rather than 3 characters):
- (( Str len |<(( Str index any |a b|2))>)) → 7
- (( Str len |X(( Str index any |a b|2))X)) → 7
- (( Str len |X(( Str index |a b|2))X)) → 3
- X(( Str index any |a b|2))X → X X
The same string-length problem occurs when using template (( Str index )). There might be other quirks as well, but most cases work as expected.
Opis vseh predlog za delo z nizi
{{bottomLinkPreText}}
{{bottomLinkText}}
This page is based on a Wikipedia article written by
contributors (read/edit).
Text is available under the
CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.
{{current.index+1}} of {{items.length}}
Thanks for reporting this video!
This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:
An extension you use may be preventing Wikiwand articles from loading properly.
If you're using HTTPS Everywhere or you're unable to access any article on Wikiwand, please consider switching to HTTPS (https://www.wikiwand.com).
An extension you use may be preventing Wikiwand articles from loading properly.
If you are using an Ad-Blocker, it might have mistakenly blocked our content.
You will need to temporarily disable your Ad-blocker to view this page.
✕
This article was just edited, click to reload
Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}
Follow Us
Don't forget to rate us
Oh no, there's been an error
Please help us solve this error by emailing us at
support@wikiwand.com
Let us know what you've done that caused this error, what browser you're using, and whether you have any special extensions/add-ons installed.
Thank you!