Fix handling of item with 'no value' artist.
This commit is contained in:
parent
80303618fb
commit
fecab79bba
|
@ -43,8 +43,12 @@
|
||||||
<div>
|
<div>
|
||||||
<strong>{{ prop_label }}</strong>:
|
<strong>{{ prop_label }}</strong>:
|
||||||
{% for claim in claims %}
|
{% for claim in claims %}
|
||||||
{% set claim_qid = claim.mainsnak.datavalue.value.id %}
|
{% if 'datavalue' in claim.mainsnak %}
|
||||||
<a href="https://www.wikidata.org/wiki/{{ claim_qid }}">{{ other[claim_qid] or '[ label missing ]' }}</a> ({{ claim_qid }})
|
{% 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 %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue