Template:Str left/doc

Usage


Gives the resultant of characters creating a substring of characters from the start of the trimmed string (i.e. the substring returned will have length, exclusive of leading whitespace characters, which are trimmed first before is invoked).

If is invalid or empty, an empty string is returned. If undefined, it defaults to 1.

Limitations

 * Length to 500: The maximum substring stops at 500 long, yet gives no error message. Only 500 characters can be extracted even if the is longer.
 * Inexpensive (uses no other templates).

Examples

 * Lorem ipsu &rarr; Lorem ipsu
 * Lore &rarr; Lore, (note leading spaces trimmed!)
 * L &rarr; L
 * &rarr;
 * Lorem ipsum dolor sit amet &rarr; Lorem ipsum dolor sit amet
 * Lorem ipsum dolor sit amet &rarr; Lorem ipsum dolor sit amet
 * Lorem ipsum dolor sit amet &rarr; Lorem ipsum dolor sit amet