{% load humanize madlibs comparatives %} {% if not stat_wrapper == 'false' %}{% endif %} {% if not stat.values.this %} {{ WAZIMAP.na_label }} {% else %} {% if stat_type == 'name' %} {{ stat.name }} {% else %} {% if stat_type == 'dollar' %}R{% endif %}{{ stat.values.this|floatformat|intcomma|cut:".0" }}{% if stat_type == 'percentage' %}%{% endif %}{% if stat_suffix %} {{ stat_suffix }}{% endif %} {% endif %} {% if stat.error.this_ratio >= 10 %}{% endif %} {% endif %} {% if not stat_class == 'secondary' %} {% if stat.error.this %} ±{% if stat_type == 'dollar' %}R{% endif %}{{ stat.error.this|floatformat|intcomma|cut:".0" }}{% if stat_type == 'percentage' %}%{% endif %} {% endif %} {% if stat.numerators.this %} ({% if stat_type == 'dollar' %}R{% endif %}{{ stat.numerators.this|floatformat|intcomma|cut:".0" }}  ±{% if stat_type == 'dollar' %}R{% endif %}{{ stat.numerator_errors.this|floatformat|intcomma|cut:".0" }}) {% endif %} {% endif %} {% if stat_type == 'name' %}{{ stat_name }}{% else %}{{ stat.name }}{% endif %} {% if stat_class == 'secondary' %} {% if stat.error.this %} ±{% if stat_type == 'dollar' %}R{% endif %}{{ stat.error.this|floatformat|intcomma|cut:".0" }}{% if stat_type == 'percentage' %}%{% endif %} {% endif %} {% if stat.numerators.this %} ({% if stat_type == 'dollar' %}R{% endif %}{{ stat.numerators.this|floatformat|intcomma|cut:".0" }}  ±{% if stat_type == 'dollar' %}R{% endif %}{{ stat.numerator_errors.this|floatformat|intcomma|cut:".0" }}) {% endif %} {% endif %} {% if geography.comparatives and stat.values.this and not stat_class == 'secondary' %} {% endif %} {% if not stat_wrapper == 'false' %}{% endif %}