Browse Source

culture-media: highlight features with a wikidata object without image

master
parent
commit
9b9345386b
  1. 11
      culture-media.yaml

11
culture-media.yaml

@ -17,6 +17,11 @@ feature:
{% set str = 'has wikidata tag' %}
{% set wikidata = tags.wikidata|wikidataEntity %}
{% if wikidata.claims.P18|length == 0 %}
{% set color = '#007fff' %}
{% set str = 'has wikidata tag, but wikidata object does not have an image' %}
{% endif %}
{% if wikidata.claims.P31[0].mainsnak.datavalue.value.id in ['Q5'] %}
{% set color = 'magenta' %}
{% set str = "wikidata points to a human, should most likely be 'subject:wikidata'" %}
@ -100,6 +105,12 @@ info: |
</td>
<td>image or wikimedia_commons tag but no wikidata</td>
</tr>
<tr>
<td>
{{ markerCircle({ fillColor: '#007fff' })|raw }}
</td>
<td>has wikidata tag, but wikidata object does not have an image</td>
</tr>
<tr>
<td>
{{ markerCircle({ fillColor: 'blue' })|raw }}

Loading…
Cancel
Save