Template:str sub-lite
Jump to navigation
Jump to search
- The following documentation is located at Template:str sub-lite/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
This template returns a substring of a string. It's a lite template that doesn't make use of Lua modules.
Usage
[edit]{{str sub-lite|text|start|end}}
means:
"Substring of text starting at start and ending at end. Zero-indexed: the first character is numbered 0, and so on, e.g. {{str sub-lite|20090624130510|8|9}}
returns characters starting at the 8th and ending at the 9th, i.e. "41"."