Template:Nowordbreak
Jump to navigation
Jump to search
Documentation The documentation below is transcluded from Template:Nowordbreak/doc. (edit | history)
![Template-info.svg](https://commons.wiki.gg/images/thumb/4/4c/Template-info.svg/50px-Template-info.svg.png)
[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 |