<dl class="results-analysis">
  {% if data.electorate %}
    <div class="results-analysis__item">
      <dt>{{ 'Electorate'|t }}</dt>
      <dd>{{ data.electorate }}</dd>
    </div>
  {% endif %}

  {% if data.spoils %}
    <div class="results-analysis__item">
      <dt>{{ 'Rejected ballot papers'|t }}</dt>
      <dd>{{ data.spoils }}</dd>
    </div>
  {% endif %}

  {% if data.total_votes %}
    <div class="results-analysis__item">
      <dt>{{ 'Votes cast'|t }}</dt>
      <dd>{{ data.total_votes }}</dd>
    </div>
  {% endif %}

  {% if data.turnout %}
    <div class="results-analysis__item">
      <dt>{{ '% turnout'|t }}</dt>
      <dd>{{ data.turnout }}</dd>
    </div>
  {% endif %}

  {% if data.show_majority and data.majority is not null %}
    <div class="results-analysis__item">
      <dt>{{ 'Majority'|t }}</dt>
      <dd>{{ data.majority }}</dd>
    </div>
  {% endif %}

  {% if data.hold_or_gain %}
    <div class="results-analysis__item">
      <dt>{{ 'Outcome'|t }}</dt>
      <dd>{{ data.hold_or_gain }}</dd>
    </div>
  {% endif %}

  {% if data.previous_year %}
    <div class="results-analysis__item">
      <dt>{{ data.previous_year }} {{ 'Result'|t }}</dt>
      <dd>{{ data.previous_winner_abbr|default('') }}</dd>
    </div>
  {% endif %}
</dl>
