Template:Nowordbreak

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.