{% load humanize madlibs %} {# to be called via `comparatives` inclusion tag #}
  • {% if index and stat_type != 'count' %} {{ index|comparison_index_phrase }} the {{ stat_type|stat_type_to_number_noun }} in {{ place_name }}: {% if stat_type == 'dollar' %}R{% endif %}{{ value|floatformat|intcomma|cut:".0" }}{% if stat_type == 'percentage' %}%{% endif %} {% if error_ratio >= 10 %}{% endif %} {% else %} {{ place_name }}: {% if stat_type == 'dollar' %}R{% endif %}{{ value|floatformat|intcomma|cut:".0" }}{% if stat_type == 'percentage' %}%{% endif %} {% endif %} {% if numerator %} {% if stat_type == 'dollar' %}R{% endif %}{{ numerator|floatformat|intcomma|cut:".0" }} {% if error %} (±{% if stat_type == 'dollar' %}R{% endif %}{{ error|floatformat|intcomma|cut:".0" }}{% if stat_type == 'percentage' %}%{% endif %}{% if numerator_error %} / ±{% if stat_type == 'dollar' %}R{% endif %}{{ numerator_error|floatformat|intcomma|cut:".0" }}{% endif %}) {% endif %} {% elif error %} ±{% if stat_type == 'dollar' %}R{% endif %}{{ error|floatformat|intcomma|cut:".0" }}{% if stat_type == 'percentage' %}%{% endif %} {% endif %}