From 5ada01027a52ebb1849d0cca5db813dde65205bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Tue, 21 Jun 2022 20:57:47 +0200 Subject: [PATCH] culture-media: check wikidata entity if it is a human --- culture-media.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/culture-media.yaml b/culture-media.yaml index f5eebfe..a4bb882 100644 --- a/culture-media.yaml +++ b/culture-media.yaml @@ -10,6 +10,11 @@ feature: {% elseif tags.wikimedia_commons or tags.image %} {% set color = 'cyan' %} {% 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: | {% if tags.historic and tags.historic != 'yes' %} {{ tagTransList('historic', tags.historic) }} @@ -61,4 +66,10 @@ info: | has wikidata link + + + {{ markerCircle({ fillColor: 'magenta' })|raw }} + + wikidata points to a human, should most likely be 'subject:wikidata' +