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.

60 lines
1.9 KiB

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