Browse Source

New Special/Wikipedia category

master
parent
commit
c880c87bf1
  1. 13
      index.json
  2. 14
      wikipedia.json

13
index.json

@ -250,6 +250,19 @@
},
{
"id": "places_geo"
},
{
"name": {
"en": "Special",
"de": "Spezial"
},
"id": "special",
"type": "index",
"subCategories": [
{
"id": "wikipedia"
}
]
}
]
}

14
wikipedia.json

@ -0,0 +1,14 @@
{
"type": "overpass",
"name": {
"en": "Wikipedia"
},
"query": {
"14": "(\nnode[~\"wikipedia\"~\".\"];\nway[~\"wikipedia\"~\".\"];\nrelation[~\"wikipedia\"~\".\"];\n)"
},
"feature": {
"pre": "{% set errors = [] %}\n{% for k, v in tags %}\n\n{% if k|matches(\"^wikipedia:\") %}\n {% set errors = errors|merge([\"Uses <tt>wikipedia</tt> and old-style <tt>\" ~ k ~ \"</tt> tag\"]) %}\n{% elseif k|matches(\"^wikipedia:\") %}\n {% set errors = errors|merge([\"Uses old-style <tt>\" ~ k ~ \"</tt> tag\"]) %}\n{% endif %}\n\n{% if k|matches(\":?wikipedia$\") and not v|matches(\"^[a-z-]+:\") %}\n {% set errors = errors|merge([\"Tag <tt>\" ~ k ~ \"</tt> does not contain language information: \" ~ v ]) %}\n{% endif %}\n\n{% endfor %}",
"description": "{% if errors|length %}\n{{ errors|length }} {{ trans('error', errors|length) }}\n{% endif %}",
"body": "{% if errors|length %}\n{{ trans('error', errors|length) }}:<ul>\n{% for e in errors %}\n <li>{{ e|raw }}</li>\n{% endfor %}\n</ul>\n{% endif %}"
}
}
Loading…
Cancel
Save