Skip to main content

$(ordinal)

$(ordinal [number])

Appends the English ordinal suffix to a number: 1 → "1st", 2 → "2nd", 3 → "3rd", 4 → "4th" (with the 11th/12th/13th exceptions handled correctly).

Examples

$(ordinal 3)

Will display "3rd"

You're the $(ordinal {{sub_count}}) subscriber this stream!

Will display e.g. "You're the 21st subscriber this stream!"