type: "overpass" query: 15: | ( nwr[historic]; nwr[tourism~'^(attraction|artwork)$']; nwr[heritage]; nwr[amenity~'^(fountain|arts_centre|place_of_worship|theatre)$']; ) feature: pre: | {% set color = 'red' %} {% set str = 'No image, wikimedia_commons or wikidata' %} {% if tags.wikidata %} {% set color = 'blue' %} {% 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'" %} {% endif %} {% elseif tags.wikipedia %} {% set color = '#af00ff' %} {% set str = 'wikipedia tag found without corresponding wikidata tag' %} {% elseif tags.wikimedia_commons or tags.image %} {% set color = 'cyan' %} {% set str = tags.wikimedia_commons ? 'has wikimedia_commons tag' : 'has image tag' %} {% endif %} body: | {{ str }} style: color: | {{ color }} description: | {% if tags.historic and tags.historic != 'yes' %} {{ tagTransList('historic', tags.historic) }} {% if tags.historic == 'memorial' and tags.memorial %} ({{ tagTransList('memorial', tags.memorial) }}) {% endif %} {% elseif tags.tourism %} {{ tagTransList('tourism', tags.tourism) }} {% elseif tags.amenity %} {{ tagTrans('amenity', tags.amenity) }} {% elseif tags.heritage %} {{ keyTrans('heritage') }} {% endif %} markerSymbol: "{{ markerPointer({ fillColor: color })|raw }}" listMarkerSymbol: "{{ markerCircle({ fillColor: color })|raw }}" filter: type: name: "{{ trans('filter:type') }}" show_default: "true" query: "nwr[{{ value }}]" type: "select" key: "tourism" values: | op: "has" info: |
{{ markerCircle({ fillColor: 'red' })|raw }} No image, wikimedia_commons or wikidata
{{ markerCircle({ fillColor: 'magenta' })|raw }} wikidata tag points to a human, should most likely be 'subject:wikidata'
{{ markerCircle({ fillColor: '#af00ff' })|raw }} wikipedia tag found without corresponding wikidata tag
{{ markerCircle({ fillColor: 'cyan' })|raw }} image or wikimedia_commons tag but no wikidata
{{ markerCircle({ fillColor: '#007fff' })|raw }} has wikidata tag, but wikidata object does not have an image
{{ markerCircle({ fillColor: 'blue' })|raw }} has wikidata tag
This category lists artwork, memorials, historic and heritage protected objects. These should have an image or wikimedia_commons tag, or (even better) a wikidata tag pointing to the object's entry.
Memorials erroneously often have a wikidata (and wikipedia) tag of the person/event, which should be changed to subject:wikidata resp. subject:wikipedia".