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

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Etymology"
  5. },
  6. "query": {
  7. "16": [
  8. "(",
  9. "nwr[\"name:etymology\"];",
  10. "nwr[\"name:etymology:wikidata\"];",
  11. "nwr[\"name:etymology:wikipedia\"];",
  12. ");"
  13. ]
  14. },
  15. "feature": {
  16. "description": [
  17. "{{ attribute(tags, \"name:etymology\")|enumerate }}",
  18. "{% if attribute(tags, \"name:start_date\") %}(since {{ attribute(tags, \"name:start_date\")|osmFormatDate({ format: \"short\" }) }}){% endif %}"
  19. ],
  20. "popupDescription": " ",
  21. "body": [
  22. "{{ keyTrans('name:etymology') }}: {{ attribute(tags, \"name:etymology\")|enumerate }}<br/>",
  23. "{{ keyTrans('name:start_date') }}: {% if attribute(tags, \"name:start_date\") %}{{ attribute(tags, \"name:start_date\")|osmFormatDate({ format: \"long\" }) }}{% else %}{{ trans('unknown') }}{% endif %}<br/>",
  24. "{% if tags.old_name %}{{ keyTrans('old_name') }}: {{ tags.old_name|enumerate }}<br/>{% endif %}",
  25. "{% if attribute(tags, 'old_name:etymology') %}{{ keyTrans('old_name:etymology') }}: {{ attribute(tags, 'old_name:etymology')|enumerate }}<br/>{% endif %}",
  26. ""
  27. ]
  28. }
  29. }