/macros/TruncateString
Type: /type/macro
macro: value: $def with (s, n)

$if s: $s[slice(n)] $(s[slice(n, None)] and "...")