Vorlage:Strsub
Aus Kitakien
(Unterschied zwischen Versionen)
(optional subst) |
(optional subst) |
||
Zeile 1: | Zeile 1: | ||
- | <includeonly>{{#ifeq:{{{2|0}}}|0|{{str_left|{{{1}}}|{{{3|0}}}}}|<!-- | + | <includeonly>{{{{{subst|}}}#ifeq:{{{2|0}}}|0|{{{{{subst|}}}str_left|subst={{{subst|}}}|{{{1}}}|{{{3|0}}}}}|<!-- |
-->{{{{{subst|}}}#ifexpr:{{{2|0}}} <= 1 and {{{2|0}}} + {{{3|0}}} >= 1|<!-- | -->{{{{{subst|}}}#ifexpr:{{{2|0}}} <= 1 and {{{2|0}}} + {{{3|0}}} >= 1|<!-- | ||
-->{{{{{subst|}}}str_index|subst={{{subst|}}}|{{{1}}}|1}}}}<!-- | -->{{{{{subst|}}}str_index|subst={{{subst|}}}|{{{1}}}|1}}}}<!-- |
Version vom 19:06, 8. Mär. 2009
{{str_sub|text|start|length}} = Substring of text starting at start and containing length characters.
start + length must be less than 50. Only operates on a limited character set.