Template:Nowordbreak
Jump to navigation
Jump to search
Documentation The documentation below is transcluded from Template:Nowordbreak/doc. (edit | history)
[purge]
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.
Usage
{{nowordbreak | <string> | <n> }}
Examples
Code | Result |
---|---|
{{nowordbreak|Testing, testing, 123|11}}
|
Testing, |
{{nowordbreak|Testing, testing, 123|20}}
|
Testing, testing, 12 |