Skip to content

Wikidata photo popup

Customize the query popup with a photo from wikidata loaded via hub.toolforge.org

---
title: Wikidata photo popup
description: Customize the query popup with a photo from wikidata loaded via [hub.toolforge.org](https://hub.toolforge.org)
options:
  zoom: 10.45
  center: [-95.9674, 36.1482]
popupTemplate: >
  <h2>
    {{ type }}
    <a href="https://openhistoricalmap.org/{{ type }}/{{ id }}" target="_blank">{{ id }}</a>
    <a href="https://openhistoricalmap.org/edit?{{ type }}={{ id }}" target="_blank">✏️</a>
  </h2>
  {% assign wikidata = tags["siren:model:wikidata"] ?? tags["model:wikidata"] %}
  {%- if wikidata %}
  <img src="https://hub.toolforge.org/{{ wikidata }}?p=image&w=200&h=150">
  <hr>
  {%- endif %}
  {%- for tag in tags %}
    <code>{{ tag[0] }} = {{ tag[1] }}</code>
    <br>
  {%- endfor %}
---

[bbox:{{bbox}}];

node["emergency"="siren"][~"^(siren:)?model:wikidata$"~".*"];

out geom;


View Map on Ultra
Edit Query on Ultra