A repository for testing purposes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.2 KiB

{
"type": "overpass",
"name": {
"en": "Etymology"
},
"query": {
"16": [
"(",
"nwr[\"name:etymology\"];",
"nwr[\"name:etymology:wikidata\"];",
"nwr[\"name:etymology:wikipedia\"];",
");"
]
},
"feature": {
"description": [
"{{ attribute(tags, \"name:etymology\")|enumerate }}",
"{% if attribute(tags, \"name:start_date\") %}(since {{ attribute(tags, \"name:start_date\")|osmFormatDate({ format: \"short\" }) }}){% endif %}"
],
"popupDescription": " ",
"body": [
"{{ keyTrans('name:etymology') }}: {{ attribute(tags, \"name:etymology\")|enumerate }}<br/>",
"{{ keyTrans('name:start_date') }}: {% if attribute(tags, \"name:start_date\") %}{{ attribute(tags, \"name:start_date\")|osmFormatDate({ format: \"long\" }) }}{% else %}{{ trans('unknown') }}{% endif %}<br/>",
"{% if tags.old_name %}{{ keyTrans('old_name') }}: {{ tags.old_name|enumerate }}<br/>{% endif %}",
"{% if attribute(tags, 'old_name:etymology') %}{{ keyTrans('old_name:etymology') }}: {{ attribute(tags, 'old_name:etymology')|enumerate }}<br/>{% endif %}",
""
]
}
}