15.918
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 101: | Zeile 101: | ||
-- mw.log("zeileGeoDaten(fbdata)") | -- mw.log("zeileGeoDaten(fbdata)") | ||
-- mw.logObject(fbdata, "fbdata") | -- mw.logObject(fbdata, "fbdata") | ||
local t = "" | local t = "" | ||
if fbdata.geoobjects ~= nil then | |||
-- die Zeile | |||
if #fbdata.geoobjects > 0 or fbdata.geoobjects.geojson.exists then | |||
t = t .. "<dt>Geo-Daten</dt><dd>" | |||
local first = true | |||
if fbdata.geoobjects | for _, o in ipairs(fbdata.geoobjects) do | ||
if first then | |||
first = false | |||
else | |||
t = t .. ",<br>" | |||
end | |||
t = t .. geo.osmLink(fbdata.frame, o["Geokoordinate"]) | |||
end | end | ||
if fbdata.geoobjects.geojson.exists then | |||
if not first then | |||
t = t .. ",<br>" | |||
end | |||
t = t .. "[[" .. fbdata.geoobjects.geojson.fullpagename .. "|GeoJson-Karte]]" | |||
end | end | ||
t = t .. " | t = t .. "</dd>" | ||
end | end | ||
end | end | ||
-- mw.logObject(t, "t") | -- mw.logObject(t, "t") | ||