Browse Source

New category: name-etymology

name-etym
parent
commit
3d859f9a85
  1. 29
      name-etymology.json

29
name-etymology.json

@ -0,0 +1,29 @@
{
"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 %}",
""
]
}
}
Loading…
Cancel
Save