15.881
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 147: | Zeile 147: | ||
["width"] = args["width"], ["height"] = args["height"], | ["width"] = args["width"], ["height"] = args["height"], | ||
["enablefullscreen"] = "yes", ["resizable"] = "yes"} | ["enablefullscreen"] = "yes", ["resizable"] = "yes"} | ||
local post_message = "" | |||
-- geojson | -- geojson | ||
if wik.pageExists(geojson_fullpagename) then | if wik.pageExists(geojson_fullpagename) then | ||
| Zeile 154: | Zeile 155: | ||
kategorien["Hat geojson und location/lat/lon"] = true | kategorien["Hat geojson und location/lat/lon"] = true | ||
end | end | ||
elseif #geoobjects > 0 then | |||
-- location/lat/lon | -- location/lat/lon | ||
for _, o in ipairs(geoobjects) do | for _, o in ipairs(geoobjects) do | ||
| Zeile 169: | Zeile 170: | ||
end | end | ||
end | end | ||
end | |||
if args["geojson"] ~= nil then | |||
post_message = "<small>Karte [{{canonicalurl:GeoJson:" .. args["geojson"] .. "}} " .. args["geojson"] .. "] nicht gefunden</small>" | |||
end | end | ||
end | end | ||
if map_args[1] ~= "" or map_args["geojson"] ~= nil then | if map_args[1] ~= "" or map_args["geojson"] ~= nil then | ||
mw.logObject(map_args, "map_args") | mw.logObject(map_args, "map_args") | ||
t = t .. frame:callParserFunction("#display_map", map_args) | t = t .. frame:callParserFunction("#display_map", map_args) .. post_message | ||
else | else | ||
-- bisherige Vorlagen-Karte | -- bisherige Vorlagen-Karte | ||