{% if cave.entrances %}

Entrances

{% for ent in cave.entrances %} {{ ent.entrance_letter|safe }} {% if ent.entrance.marking %} Marking: {{ ent.entrance.marking_val|safe }} {% endif %}
{% endfor %} {% endif %}