{
"type": "overpass",
"name": {
"en": "Etymology"
},
"query": {
"16": [
"(",
"nwr[\"name:etymology\"];",
"nwr[\"name:etymology:wikidata\"];",
"nwr[\"name:etymology:wikipedia\"];",
");"
]
},
"feature": {
"description": [
"{% set found = false %}",
"{% for k in ['amenity', 'shop', 'telecom', 'waterway', 'craft', 'highway', 'railway', 'aerialway', 'emergency', 'geological', 'man_made', 'natural', 'office', 'power', 'aeroway', 'tourism', 'leisure', 'military', 'landuse', 'barrier', 'route'] if not found %}",
" {% if attribute(tags, k) and attribute(tags, k) != 'yes' %}",
" {{ tagTransList(k, attribute(tags, k)) }}",
" {% set found = true %}",
" {% endif %}",
"{% endfor %}",
"{% if found %}{# nothing #}",
"{% elseif tags.building and tags.building != 'yes' %}",
"{{ tagTransList('building', tags.building) }}",
"{% elseif tags.historic and tags.historic not in ['heritage', 'yes', 'building'] %}",
"{{ tagTransList('historic', tags.historic) }}",
"{% elseif tags.building == 'yes' or tags.historic == 'building' %}",
"{{ keyTrans('building') }}",
"{% endif %}"
],
"details": [
"{% if attribute(tags, 'name:etymology') %}{{ attribute(tags, 'name:etymology')|enumerate }}{% endif %}",
"{% if attribute(tags, \"name:start_date\") %} (since {{ attribute(tags, \"name:start_date\")|osmFormatDate({ format: \"short\" }) }}){% endif %}"
],
"body": [
"{% if attribute(tags, 'name:etymology') %}{{ keyTrans('name:etymology') }}: {{ attribute(tags, 'name:etymology')|enumerate }}
{% endif %}",
"{% if attribute(tags, \"name:start_date\") %}{{ keyTrans('name:start_date') }}: {{ attribute(tags, \"name:start_date\")|osmFormatDate({ format: \"long\" }) }}
{% endif %}",
"{% if tags.old_name %}{{ keyTrans('old_name') }}: {{ tags.old_name|enumerate }}
{% endif %}",
"{% if attribute(tags, 'old_name:etymology') %}{{ keyTrans('old_name:etymology') }}: {{ attribute(tags, 'old_name:etymology')|enumerate }}
{% endif %}",
"",
"{% if attribute(tags, 'name:etymology:wikidata') or attribute(tags, 'name:etymology:wikipedia') %}",
"