Difference between revisions of "Template:Str index"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
Line 1: | Line 1: | ||
− | {{#ifexpr:{{str_len|{{{1|}}}}} < {{{2|0}}}|{{FormattingError|String is not long enough}}|<!-- | + | <includeonly>{{#ifexpr:{{str_len|{{{1|}}}}} < {{{2|0}}}|{{FormattingError|String is not long enough}}|<!-- |
-->{{str_index/logic|*{{str_left|{{{1|}}}|{{{2|0}}}}}*|{{str_left|{{{1|}}}|{{#expr:{{{2|0}}}-1}}}}}}<!-- | -->{{str_index/logic|*{{str_left|{{{1|}}}|{{{2|0}}}}}*|{{str_left|{{{1|}}}|{{#expr:{{{2|0}}}-1}}}}}}<!-- | ||
− | -->}} | + | -->}}</includeonly><noinclude> |
+ | |||
+ | <nowiki>{{str_index|</nowiki>''text''|''number''<nowiki>}}</nowiki> = Returns the ''number'' character of ''text''. Only supports a limited character set. Returns an error on unknown characters.</noinclude> |
Revision as of 21:38, 26 February 2009
{{str_index|text|number}} = Returns the number character of text. Only supports a limited character set. Returns an error on unknown characters.