{% load wagtailbase_tags %}

{% if relationships %}
<h3>Relationships</h3>
<dl class="top-padding">
    {% for relationship_type in relationships.keys %}
    <dt class="capitalize">{{ relationship_type }}</dt>

    {% for r in relationships|get_item:relationship_type %}
    <dd {% if r.relationship_number %}class="relationship-{{ r.relationship_number }}"{% endif %}>

    {% with person=r.related_person %}
    <a href="{% url 'person-detail' person.id %}">
        {{ person }}
        {% if person.highest_office %}
        ({{ person.highest_office }})
        {% endif %}
    </a>
    {% endwith %}

    {% if r.secondary_source %}
    ({{ r.secondary_source }})
    {% endif %}

    {% if r.references.all %}
    <a href="#" class="expander life-dates right">
        Expand <i class="fa fa-caret-right"></i>
    </a>
    <p class="hide collapsible">
    {% for ref in r.references.all %}
    {{ ref.print_primary_source_refs }}{% if not forloop.last %}, {% endif %}
    {% endfor %}
    </p>
    {% endif %}

    </dd>
    {% endfor %}

    {% endfor %}
</dl>
{% endif %}

{% load wagtailbase_tags %}

{% if relationships %}
<h3>Relationships</h3>
<dl class="top-padding">
    {% for relationship_type in relationships.keys %}
    <dt class="capitalize">{{ relationship_type }}</dt>

    {% for r in relationships|get_item:relationship_type %}
    <dd class="{% if r.relationship_number %}relationship-{{ r.relationship_number }}{% endif %}{% if r.uncertain %} uncertain{% endif %}
">

    {% if r.uncertain %}?{% endif %}

    {% with person=r.related_person %}
    <a href="{% url 'person-detail' person.id %}">
        {{ person }}
        {% if person.highest_office %}
        ({{ person.highest_office }})
        {% endif %}
    </a>
    {% endwith %}

    {% if r.secondary_source %}
    ({{ r.secondary_source }})
    {% endif %}

    {% if r.references.all %}
    <a href="#" class="expander life-dates right">
        Expand <i class="fa fa-caret-right"></i>
    </a>
    <p class="hide collapsible">
    {% for ref in r.references.all %}
    {{ ref.print_primary_source_refs }}{% if not forloop.last %}, {% endif %}
    {% endfor %}
    </p>
    {% endif %}

    </dd>
    {% endfor %}

    {% endfor %}
</dl>
{% endif %}

Add class uncertain, plus a question mark before the related person name, when the relationship is flagged as uncertain.
Add class uncertain, plus a question mark before the related person name, when the relationship is flagged as uncertain.
