Шаблон:Str rightc/doc

Материал из 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>

[править] См. также