🎉 Tickety V3 has now been released! Read more →
PlaceholdersParsers

Truncate Parser for Placeholders

Limit the length of text in a Tickety placeholder by cutting off the excess characters and adding an ellipsis, with the usage, its alias and examples.

Usage

To use the parser, insert the following syntax in your text:

{truncate(maxlength):variable}

  • You can also reference this parser using the alias: ml

Examples

  1. Basic truncation:
  • Input: {truncate(13):This is a very long text}
  • Output: This is a ver...
  1. Using with variables:
  • Input: {truncate(7):{member.name}}
  • Output: NotDemo...

Notes

  • If the text is shorter than the maxlength, it will be returned unchanged
  • When text is truncated, an ellipsis (...) is automatically added to the end
  • The max length parameter must be a positive integer
  • Spaces count towards the character limit

On this page