Geocode coordinates to Commons Category
+ +Click on the map
+
+diff --git a/templates/map.html b/templates/map.html new file mode 100644 index 0000000..8dc9533 --- /dev/null +++ b/templates/map.html @@ -0,0 +1,84 @@ +{% extends "base.html" %} + +{% block title %}Geocode to Commons{% endblock %} + +{% block link %} + +{% endblock %} + +{% block script %} + + + + +{% endblock %} + +{% block style %} + +{% endblock %} + +{% block content %} +
+{{ result | tojson(indent=2) }}+ +{% if result.wikidata %} +
Wikidata item: {{ result.wikidata }}
+{% endif %} + +{% if result.commons_cat %} +Commons category: {{result.commons_cat.title }}
+{% endif %} + +{% if elements %} +{{ elements.count() }} surrounding elements found
+{% else %} +No elements found
+{% endif %} + +{% if query %} +Searching for Wikimedia Commons categories using this SPARQL query. Wikidata Query service
+