Template:str sub-lite

From Wiktionary, the free dictionary
Jump to navigation Jump to search

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"."

See also

[edit]