Template:Str right/doc

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 please avoid.

Examples

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


 * &rarr;
 * &rarr;

TemplateData
{       "description": "Gives the characters from to the end of the string.", "params": { "1": {                       "label": "String", "description": "The string to be trimmed", "type": "string", "required": true },               "2": {                        "label": "Count", "description": "The index of the character to trim from. Negative values are treated as 0, see to trim the right n characters. If its greater than the string length returns the empty string.", "type": "number", "required": true }       } }