|
|
| Zeile 311: |
Zeile 311: |
| end | | end |
| -- mw.log("t=" .. t) | | -- mw.log("t=" .. t) |
| return t
| |
| end
| |
|
| |
| function p.zeileGeokoordinate(fbdata)
| |
| -- mw.log("zeileGeokoordinate()")
| |
| -- mw.logObject(fbdata)
| |
| -- Konsolenzeile zum Debuggen:
| |
| -- fbdata=p.fbdata{pargs={}}; fbdata.fullpagename="Isaak-Loewi-Straße 1, 3, 5, 7, 9, Liesl-Kießling-Straße 16"; print(p.zeileGeokoordinate(fbdata))
| |
| local t = ""
| |
| local geokoordinate = que.getValues(fbdata.fullpagename, "Geokoordinate", true)
| |
| if #geokoordinate > 0 then
| |
| local attr_text = "Geokoordinate"
| |
| if #geokoordinate > 1 then
| |
| attr_text = attr_text .. "n"
| |
| end
| |
| t = t .. "<dt>[[Attribut:Geokoordinate|" .. attr_text .. "]]</dt><dd>"
| |
| for i, g in ipairs(geokoordinate) do
| |
| if i > 1 then
| |
| t = t .. ",<br>"
| |
| end
| |
| t = t .. geo.osmLink(fbdata.frame, g)
| |
| end
| |
| t = t .. "</dd>"
| |
| end
| |
| -- mw.log("t = " .. t)
| |
| return t | | return t |
| end | | end |