Шаблон:Str rightc
Материал из Xgu.ru
Документация
Содержание |
Использование
-
{{Str rightc|Строка|Длина}}
Возвращает подстроку заданной длины с конца.
Ограничения
- Длина исходной строки не должна превышать 100 символов, иначе будет выведена ошибка «max index is 100 for str_sub». Проверить длину строки можно с помощью шаблона {{Str len}}.
Примеры
- {{Str rightc| lorem ipsum dolor sit amet | 10 }} → r sit amet
- {{Str rightc| lorem ipsum dolor sit amet | 1 }} → t<expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation><expr_unrecognised_punctuation>
- {{Str rightc| lorem ipsum dolor sit amet | 0 }} → <expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator>
- {{Str rightc |123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.1 | 99}} → <expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator><expr_unexpected_operator>
См. также
Во избежание поломок страниц, использующих данный шаблон, желательно экспериментировать в своём личном пространстве.