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.

74 lines
2.4 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ca": "Viquipèdia",
  5. "cs": "Wikipedie",
  6. "de": "Wikipedia",
  7. "en": "Wikipedia",
  8. "es": "Wikipedia",
  9. "fr": "Wikipédia",
  10. "gl": "Wikipedia",
  11. "hu": "Wikipédia",
  12. "it": "Wikipedia",
  13. "ja": "ウィキペディア",
  14. "nb": "Wikipedia",
  15. "nl": "Wikipedia",
  16. "oc": "Wikipèdia",
  17. "pl": "Wikipedia",
  18. "pt": "Wikipédia",
  19. "pt-br": "Wikipédia",
  20. "ru": "Википедия",
  21. "sr": "Википедија",
  22. "tr": "Wikipedia"
  23. },
  24. "query": {
  25. "14": [
  26. "(",
  27. "node[~\"wikipedia\"~\".\"];",
  28. "way[~\"wikipedia\"~\".\"];",
  29. "relation[~\"wikipedia\"~\".\"];",
  30. "",
  31. "node[~\"wikidata$\"~\".\"];",
  32. "way[~\"wikidata$\"~\".\"];",
  33. "relation[~\"wikidata$\"~\".\"];",
  34. "",
  35. "node[wikimedia_commons];",
  36. "way[wikimedia_commons];",
  37. "relation[wikimedia_commons];",
  38. ")"
  39. ]
  40. },
  41. "feature": {
  42. "pre": [
  43. "{% set errors = [] %}",
  44. "{% for k, v in tags %}",
  45. "",
  46. "{% if k|matches(\"^wikipedia:\") %}",
  47. " {% set errors = errors|merge([\"Uses <tt>wikipedia</tt> and old-style <tt>\" ~ k ~ \"</tt> tag\"]) %}",
  48. "{% elseif k|matches(\"^wikipedia:\") %}",
  49. " {% set errors = errors|merge([\"Uses old-style <tt>\" ~ k ~ \"</tt> tag\"]) %}",
  50. "{% endif %}",
  51. "",
  52. "{% if k|matches(\":?wikipedia$\") and not v|matches(\"^[a-z-]+:\") %}",
  53. " {% set errors = errors|merge([\"Tag <tt>\" ~ k ~ \"</tt> does not contain language information: \" ~ v ]) %}",
  54. "{% endif %}",
  55. "",
  56. "{% endfor %}"
  57. ],
  58. "description": [
  59. "{% if errors|length %}",
  60. "{{ errors|length }} {{ trans('error', errors|length) }}",
  61. "{% endif %}"
  62. ],
  63. "body": [
  64. "{% if errors|length %}",
  65. "{{ trans('error', errors|length) }}:<ul>",
  66. "{% for e in errors %}",
  67. " <li>{{ e|raw }}</li>",
  68. "{% endfor %}",
  69. "</ul>",
  70. "{% endif %}",
  71. "<p>{{ tags.wikidata|default(tags.wikipedia)|wikipediaAbstract }}</p>"
  72. ]
  73. }
  74. }