Fix handling of item with 'no value' artist.

This commit is contained in:
Edward Betts 2019-09-29 08:33:52 +01:00
parent 80303618fb
commit fecab79bba

View file

@ -43,8 +43,12 @@
<div>
<strong>{{ prop_label }}</strong>:
{% for claim in claims %}
{% if 'datavalue' in claim.mainsnak %}
{% set claim_qid = claim.mainsnak.datavalue.value.id %}
<a href="https://www.wikidata.org/wiki/{{ claim_qid }}">{{ other[claim_qid] or '[ label missing ]' }}</a> ({{ claim_qid }})
{% else %}
<i>no value</i>
{% endif %}
{% endfor %}
</div>
{% endif %}