Template:Str rightc/doc

Usage


Gives a substring of length of characters from the right-side end of the string. If the parameter 1 is empty, then immediately returns with parameter 3 (or nothing), and skips all the complex processing usually needed to extract a substring.

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

Limitations

 * Up to 100 characters 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 long ".
 * Limited set of characters.
 * Expensive (if used too many times per page, generates "Wikimedia Foundation Server Error").
 * Returning parameter 3, when parameter 1 is empty, was added 8 May 2010.

Examples

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