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.

58 lines
1.8 KiB

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