diff --git a/templates/item.html b/templates/item.html index 3a5e578..bba9c4c 100644 --- a/templates/item.html +++ b/templates/item.html @@ -43,8 +43,12 @@
{{ prop_label }}: {% for claim in claims %} - {% set claim_qid = claim.mainsnak.datavalue.value.id %} - {{ other[claim_qid] or '[ label missing ]' }} ({{ claim_qid }}) + {% if 'datavalue' in claim.mainsnak %} + {% set claim_qid = claim.mainsnak.datavalue.value.id %} + {{ other[claim_qid] or '[ label missing ]' }} ({{ claim_qid }}) + {% else %} + no value + {% endif %} {% endfor %}
{% endif %}