Browse Source

culture-media: check wikidata entity if it is a human

pedestrian
parent
commit
5ada01027a
  1. 11
      culture-media.yaml

11
culture-media.yaml

@ -10,6 +10,11 @@ feature:
{% elseif tags.wikimedia_commons or tags.image %} {% elseif tags.wikimedia_commons or tags.image %}
{% set color = 'cyan' %} {% set color = 'cyan' %}
{% endif %} {% endif %}
{% if tags.wikidata %}
{% set wikidata = tags.wikidata|wikidataEntity %}
{% if wikidata.claims.P31[0].mainsnak.datavalue.value.id in ['Q5'] %}{% set color = 'magenta' %}{% endif %}
{% endif %}
description: | description: |
{% if tags.historic and tags.historic != 'yes' %} {% if tags.historic and tags.historic != 'yes' %}
{{ tagTransList('historic', tags.historic) }} {{ tagTransList('historic', tags.historic) }}
@ -61,4 +66,10 @@ info: |
</td> </td>
<td>has wikidata link</td> <td>has wikidata link</td>
</tr> </tr>
<tr>
<td>
{{ markerCircle({ fillColor: 'magenta' })|raw }}
</td>
<td>wikidata points to a human, should most likely be 'subject:wikidata'</td>
</tr>
</table> </table>
Loading…
Cancel
Save