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