Revision as of 06:15, 15 February 2025 by Prd(talk | contribs)(Created page with "{{High-use}} {{Documentation subpage}} {{Lua|Module:String}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> == Usage == : {{tlx|str right|<string>|<offset>}} Gives the characters from <offset> to the end of the string. A negative <offset> is treated the same as zero, which simply returns the original string. If <offset> is longer than <string> then this returns an empty string. If <offset> is invalid, empty or undefined, this template goes...")
Gives the characters from <offset> to the end of the string.
Template parameters
Parameter
Description
Type
Status
String
1
The string to be trimmed
String
required
Count
2
The index of the character to trim from. Negative values are treated as 0, see {{str rightc}} to trim the right n characters. If its greater than the string length returns the empty string.