Translations:Extension:Scribunto/Lua reference manual/1712/en

Returns the substring of $s that starts at $i and continues until $j; $i and $j can be negative. If $j is nil or omitted, it will continue until the end of the string.