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

String Format Parser

The String Format Parser provides a set of simple string transformations you can apply inline to text or variables.

Usage

{lower:Text} — converts the text to lowercase

{upper:Text} — converts the text to uppercase

{capitalize:Text} — capitalizes the first character of the text

{escape:Text} — escapes special characters (for example, | becomes \|)

Examples

  • Input: {lower:Hello Parbez!} → hello parbez!
  • Input: {upper:Hello Parbez!} → HELLO PARBEZ!
  • Input: {capitalize:hello parbez!} → Hello parbez!
  • Input: {escape:Hello| Parbez!} → Hello\| Parbez!

Ordinal Format Parser

The OrdinalFormatParser converts an integer into its ordinal representation (e.g., 1 → 1st, 2 → 2nd, 3 → 3rd, 4 → 4th). If the input is not a valid number, it returns null.

Usage

{ordinal:number}

Examples

  • Input: {ordinal:1} → 1st
  • Input: {ordinal:22} → 22nd
  • Input: {ordinal:103} → 103rd

Notes

  • The string-formatting tags operate on the literal payload provided — you can pass variables such as {lower:{member.name}}.
  • Use escape when you need to include characters that would otherwise be parsed (like |).

On this page