type: "overpass" query: 15: | (nwr[historic];nwr[tourism~'^(attraction|artwork)$'];nwr[heritage];) 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.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.wikimedia_commons or tags.image %} {% set color = 'cyan' %} {% set str = tags.wikimedia_commons ? 'has wikimedia_commons tag' : 'has image tag' %} {% endif %} body: | {{ str }} 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.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: 'cyan' })|raw }} | image or wikimedia_commons tag but no wikidata |
{{ markerCircle({ fillColor: 'blue' })|raw }} | has wikidata tag |