Template:Str sub/doc: Difference between revisions
Appearance
No edit summary |
m 1 revision imported: Initial Setup |
(No difference)
| |
Latest revision as of 08:59, 12 April 2026
| This is a documentation subpage for Template:Str sub. It contains usage information, categories and other content that is not part of the original Template page. |
| Uses Lua: |
Usage
{{str_sub|text|start|end}} = Substring of text starting at start and going to end characters. Base 1: the first character is numbered 1, and so on, e.g. {{str_sub|20090624130510|1|4}} returns the 4 characters starting at the 1st, i.e. "2009" or {{str_sub|20090624130510|7|8}} returns the 2 characters starting at the 7th, i.e. "24"