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
- Basic truncation:
- Input:
{truncate(13):This is a very long text} - Output:
This is a ver...
- 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
Slice Parser
Return part of a piece of text in a Tickety placeholder, from a start position up to an end, with every supported parameter format, aliases and examples.
Padding Parser
Pad text in a Tickety placeholder to a fixed length with a character of your choice, on the left, the right or both sides, with every parameter and examples.