Template:Str left/doc

Usage


Gives the substring of characters from the start of the string (the substring has length ).

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
 *  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