Difference between revisions of "Template:Str sub old"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
m (Changed protection level of Template:Str sub: Done; restoring original protection ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
(safesubst support , don't include hidden cmts) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#ifeq:{{{2|0}}}|0|{{str_left |nocategory={{{nocategory|}}} |{{{1}}}|{{{3|0}}}}}|<!-- | + | <includeonly>{{{{{|safesubst:}}}#ifeq:{{{2|0}}}|0|{{{{{|safesubst:}}}str_left |nocategory={{{nocategory|}}} |{{{1}}}|{{{3|0}}}}}|<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 1 and {{{2|0}}} + {{{3|0}}} >= 1|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 1 and {{{2|0}}} + {{{3|0}}} >= 1|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|1}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|1}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 2 and {{{2|0}}} + {{{3|0}}} >= 2|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 2 and {{{2|0}}} + {{{3|0}}} >= 2|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|2}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|2}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 3 and {{{2|0}}} + {{{3|0}}} >= 3|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 3 and {{{2|0}}} + {{{3|0}}} >= 3|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|3}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|3}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 4 and {{{2|0}}} + {{{3|0}}} >= 4|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 4 and {{{2|0}}} + {{{3|0}}} >= 4|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|4}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|4}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 5 and {{{2|0}}} + {{{3|0}}} >= 5|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 5 and {{{2|0}}} + {{{3|0}}} >= 5|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|5}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|5}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 6 and {{{2|0}}} + {{{3|0}}} >= 6|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 6 and {{{2|0}}} + {{{3|0}}} >= 6|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|6}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|6}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 7 and {{{2|0}}} + {{{3|0}}} >= 7|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 7 and {{{2|0}}} + {{{3|0}}} >= 7|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|7}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|7}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 8 and {{{2|0}}} + {{{3|0}}} >= 8|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 8 and {{{2|0}}} + {{{3|0}}} >= 8|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|8}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|8}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 9 and {{{2|0}}} + {{{3|0}}} >= 9|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 9 and {{{2|0}}} + {{{3|0}}} >= 9|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|9}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|9}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 10 and {{{2|0}}} + {{{3|0}}} >= 10|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 10 and {{{2|0}}} + {{{3|0}}} >= 10|<noinclude><!-- |
− | -->{{str_index|{{{1}}}|10}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index|{{{1}}}|10}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 11 and {{{2|0}}} + {{{3|0}}} >= 11|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 11 and {{{2|0}}} + {{{3|0}}} >= 11|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|11}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|11}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 12 and {{{2|0}}} + {{{3|0}}} >= 12|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 12 and {{{2|0}}} + {{{3|0}}} >= 12|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|12}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|12}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 13 and {{{2|0}}} + {{{3|0}}} >= 13|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 13 and {{{2|0}}} + {{{3|0}}} >= 13|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|13}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|13}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 14 and {{{2|0}}} + {{{3|0}}} >= 14|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 14 and {{{2|0}}} + {{{3|0}}} >= 14|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|14}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|14}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 15 and {{{2|0}}} + {{{3|0}}} >= 15|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 15 and {{{2|0}}} + {{{3|0}}} >= 15|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|15}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|15}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 16 and {{{2|0}}} + {{{3|0}}} >= 16|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 16 and {{{2|0}}} + {{{3|0}}} >= 16|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|16}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|16}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 17 and {{{2|0}}} + {{{3|0}}} >= 17|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 17 and {{{2|0}}} + {{{3|0}}} >= 17|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|17}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|17}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 18 and {{{2|0}}} + {{{3|0}}} >= 18|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 18 and {{{2|0}}} + {{{3|0}}} >= 18|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|18}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|18}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 19 and {{{2|0}}} + {{{3|0}}} >= 19|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 19 and {{{2|0}}} + {{{3|0}}} >= 19|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|19}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|19}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 20 and {{{2|0}}} + {{{3|0}}} >= 20|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 20 and {{{2|0}}} + {{{3|0}}} >= 20|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|20}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|20}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 21 and {{{2|0}}} + {{{3|0}}} >= 21|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 21 and {{{2|0}}} + {{{3|0}}} >= 21|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|21}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|21}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 22 and {{{2|0}}} + {{{3|0}}} >= 22|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 22 and {{{2|0}}} + {{{3|0}}} >= 22|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|22}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|22}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 23 and {{{2|0}}} + {{{3|0}}} >= 23|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 23 and {{{2|0}}} + {{{3|0}}} >= 23|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|23}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|23}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 24 and {{{2|0}}} + {{{3|0}}} >= 24|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 24 and {{{2|0}}} + {{{3|0}}} >= 24|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|24}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|24}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 25 and {{{2|0}}} + {{{3|0}}} >= 25|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 25 and {{{2|0}}} + {{{3|0}}} >= 25|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|25}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|25}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 26 and {{{2|0}}} + {{{3|0}}} >= 26|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 26 and {{{2|0}}} + {{{3|0}}} >= 26|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|26}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|26}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 27 and {{{2|0}}} + {{{3|0}}} >= 27|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 27 and {{{2|0}}} + {{{3|0}}} >= 27|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|27}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|27}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 28 and {{{2|0}}} + {{{3|0}}} >= 28|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 28 and {{{2|0}}} + {{{3|0}}} >= 28|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|28}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|28}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 29 and {{{2|0}}} + {{{3|0}}} >= 29|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 29 and {{{2|0}}} + {{{3|0}}} >= 29|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|29}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|29}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 30 and {{{2|0}}} + {{{3|0}}} >= 30|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 30 and {{{2|0}}} + {{{3|0}}} >= 30|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|30}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|30}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 31 and {{{2|0}}} + {{{3|0}}} >= 31|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 31 and {{{2|0}}} + {{{3|0}}} >= 31|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|31}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|31}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 32 and {{{2|0}}} + {{{3|0}}} >= 32|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 32 and {{{2|0}}} + {{{3|0}}} >= 32|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|32}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|32}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 33 and {{{2|0}}} + {{{3|0}}} >= 33|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 33 and {{{2|0}}} + {{{3|0}}} >= 33|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|33}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|33}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 34 and {{{2|0}}} + {{{3|0}}} >= 34|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 34 and {{{2|0}}} + {{{3|0}}} >= 34|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|34}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|34}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 35 and {{{2|0}}} + {{{3|0}}} >= 35|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 35 and {{{2|0}}} + {{{3|0}}} >= 35|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|35}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|35}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 36 and {{{2|0}}} + {{{3|0}}} >= 36|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 36 and {{{2|0}}} + {{{3|0}}} >= 36|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|36}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|36}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 37 and {{{2|0}}} + {{{3|0}}} >= 37|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 37 and {{{2|0}}} + {{{3|0}}} >= 37|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|37}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|37}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 38 and {{{2|0}}} + {{{3|0}}} >= 38|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 38 and {{{2|0}}} + {{{3|0}}} >= 38|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|38}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|38}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 39 and {{{2|0}}} + {{{3|0}}} >= 39|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 39 and {{{2|0}}} + {{{3|0}}} >= 39|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|39}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|39}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 40 and {{{2|0}}} + {{{3|0}}} >= 40|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 40 and {{{2|0}}} + {{{3|0}}} >= 40|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|40}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|40}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 41 and {{{2|0}}} + {{{3|0}}} >= 41|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 41 and {{{2|0}}} + {{{3|0}}} >= 41|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|41}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|41}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 42 and {{{2|0}}} + {{{3|0}}} >= 42|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 42 and {{{2|0}}} + {{{3|0}}} >= 42|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|42}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|42}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 43 and {{{2|0}}} + {{{3|0}}} >= 43|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 43 and {{{2|0}}} + {{{3|0}}} >= 43|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|43}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|43}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 44 and {{{2|0}}} + {{{3|0}}} >= 44|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 44 and {{{2|0}}} + {{{3|0}}} >= 44|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|44}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|44}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 45 and {{{2|0}}} + {{{3|0}}} >= 45|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 45 and {{{2|0}}} + {{{3|0}}} >= 45|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|45}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|45}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 46 and {{{2|0}}} + {{{3|0}}} >= 46|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 46 and {{{2|0}}} + {{{3|0}}} >= 46|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|46}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|46}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 47 and {{{2|0}}} + {{{3|0}}} >= 47|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 47 and {{{2|0}}} + {{{3|0}}} >= 47|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|47}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|47}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 48 and {{{2|0}}} + {{{3|0}}} >= 48|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 48 and {{{2|0}}} + {{{3|0}}} >= 48|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|48}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|48}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 49 and {{{2|0}}} + {{{3|0}}} >= 49|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 49 and {{{2|0}}} + {{{3|0}}} >= 49|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|49}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|49}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} < 50 and {{{2|0}}} + {{{3|0}}} >= 50|<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} < 50 and {{{2|0}}} + {{{3|0}}} >= 50|<noinclude><!-- |
− | -->{{str_index |nocategory={{{nocategory|}}} |{{{1}}}|50}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}str_index |nocategory={{{nocategory|}}} |{{{1}}}|50}}}}<noinclude><!-- |
− | -->{{#ifexpr:{{{2|0}}} >= 50 or {{{2|0}}} + {{{3|0}}} > 50|{{FormattingError |nocategory={{{nocategory|}}} |max index is 50 for str_sub}}}}<!-- | + | --></noinclude>{{{{{|safesubst:}}}#ifexpr:{{{2|0}}} >= 50 or {{{2|0}}} + {{{3|0}}} > 50|{{{{{|safesubst:}}}FormattingError |nocategory={{{nocategory|}}} |max index is 50 for str_sub}}}}<noinclude><!-- |
− | -->}}</includeonly><noinclude> | + | --></noinclude>}}</includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 12:51, 8 June 2010
Usage
{{str_sub|text|start|length}}
= Substring of text starting at start and containing length characters. Base 0: the first character is numbered 0, and so on, e.g. {{str_sub|20090624130510|8|2}} returns the 2 characters starting at the 9th, i.e. "{{safesubst:#invoke:String|sublength|s=20090624130510|i=8|len=2}}"
Template data
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Str sub old
The template takes a substring of ''text'' starting at ''start'' and containing ''length'' characters.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 | The substring to be trimmed.
| String | required |
Numeric position | 2 | Numeric position of the starting character within the string
| Number | required |
Count | 3 | Number of characters for the substring
| Number | required |
See also
|
The above documentation is transcluded from Template:Str sub old/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |