Template:Str right/doc

is a part of a pair of templates used to truncate characters from a phrase. This one obviously handles the right side of a string; chops of characters from the left side.

Usage


Gives the characters from to the end of the string.

A negative is treated the same as zero, which simply returns the original string.

If is longer than then this returns an empty string.

If is invalid, empty or undefined, this template goes berserk, so don't do that.

Limitations

 * Up to 100 chararacters in the input string. If possible, first check length of input string using Str len. Using strings longer than 100 characters may result in the error "max index is 100 for str_sub ".
 * Limited set of characters.
 * Expensive.

Examples

 *   &rarr;
 *   &rarr;
 *   &rarr;
 *   &rarr;