diff --git a/popupBody.html b/popupBody.html index c5e9e9e..ffa09d2 100644 --- a/popupBody.html +++ b/popupBody.html @@ -115,4 +115,25 @@ {% endif %} +{% set wikipedia = null %} +{% if attribute(tags, 'wikipedia') %} + {% set wikipedia = tags.wikipedia|matches("^([^:]+):(.*)$") %} +{% endif %} + +{% if not wikipedia %} + {% for k, v in tags %} + {% set m = k|matches("^wikipedia:(.*)$") %} + {% if m %} + {% set wikipedia = [ 0, m[1], v ] %} + {% endif %} + {% endfor %} +{% endif %} + +{% if wikipedia %} +
  • + + {{ keyTrans('wikipedia') }}: + {{ wikipedia[2] }} +{% endif %} +