{{ (format_str.format(t_val) if t_val is not none else '—') }}vs{{ (format_str.format(ct_val) if ct_val is not none else '—') }}
{% set has_t = t_val is not none %}
{% set has_ct = ct_val is not none %}
{% set total = (t_val or 0) + (ct_val or 0) %}
{% if total > 0 and has_t and has_ct %}
{% set t_pct = ((t_val or 0) / total) * 100 %}
{% else %}
{% endif %}