Template:Nowordbreak/doc

This template will return the first n characters of a string, without breaking words. Numbers however, will be broken apart.

Note: This template requires the RegexFunctions extension and the Variables extension (whose future is uncertain).