Main categories of OpenStreetBrowser
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.

56 lines
1.8 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "de": "Wikipedia",
  5. "en": "Wikipedia"
  6. },
  7. "query": {
  8. "14": [
  9. "(",
  10. "node[~\"wikipedia\"~\".\"];",
  11. "way[~\"wikipedia\"~\".\"];",
  12. "relation[~\"wikipedia\"~\".\"];",
  13. "",
  14. "node[~\"wikidata$\"~\".\"];",
  15. "way[~\"wikidata$\"~\".\"];",
  16. "relation[~\"wikidata$\"~\".\"];",
  17. "",
  18. "node[wikimedia_commons];",
  19. "way[wikimedia_commons];",
  20. "relation[wikimedia_commons];",
  21. ")"
  22. ]
  23. },
  24. "feature": {
  25. "pre": [
  26. "{% set errors = [] %}",
  27. "{% for k, v in tags %}",
  28. "",
  29. "{% if k|matches(\"^wikipedia:\") %}",
  30. " {% set errors = errors|merge([\"Uses <tt>wikipedia</tt> and old-style <tt>\" ~ k ~ \"</tt> tag\"]) %}",
  31. "{% elseif k|matches(\"^wikipedia:\") %}",
  32. " {% set errors = errors|merge([\"Uses old-style <tt>\" ~ k ~ \"</tt> tag\"]) %}",
  33. "{% endif %}",
  34. "",
  35. "{% if k|matches(\":?wikipedia$\") and not v|matches(\"^[a-z-]+:\") %}",
  36. " {% set errors = errors|merge([\"Tag <tt>\" ~ k ~ \"</tt> does not contain language information: \" ~ v ]) %}",
  37. "{% endif %}",
  38. "",
  39. "{% endfor %}"
  40. ],
  41. "description": [
  42. "{% if errors|length %}",
  43. "{{ errors|length }} {{ trans('error', errors|length) }}",
  44. "{% endif %}"
  45. ],
  46. "body": [
  47. "{% if errors|length %}",
  48. "{{ trans('error', errors|length) }}:<ul>",
  49. "{% for e in errors %}",
  50. " <li>{{ e|raw }}</li>",
  51. "{% endfor %}",
  52. "</ul>",
  53. "{% endif %}"
  54. ]
  55. }
  56. }