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.

57 lines
1.8 KiB

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