Template:Nowordbreak

From Terraria Wiki
Jump to navigation Jump to search
Template-info.svg Documentation The documentation below is transcluded from Template:Nowordbreak/doc. (edit | history)

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