This is a documentation subpage for Template:Str sub new. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template selects a sub-string from the target string based on selected indices. The indices are 1-based. If the end index is omitted, it returns the rest of the string. One can also specify negative indices, in which case the substr is selected by counting from the end of the string.