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.

59 lines
1.9 KiB

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