Modul:Karte/Work: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 184: Zeile 184:
-- 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)
if args["geojson"] ~= nil and map_args["geojson"] == nil then
if geoobjects.geojson.arg ~= nil and map_args["geojson"] == nil then
t = t .. "<small>Karte [" .. geoobjects.geojson.url .. " " .. args["geojson"] .. "] nicht gefunden</small>"
t = t .. "<small>Karte [" .. geoobjects.geojson.url .. " " .. geoobjects.geojson.arg .. "] nicht gefunden</small>"
end
end
else
else
Zeile 199: Zeile 199:
-- Box um Karte
-- Box um Karte
if com.isTrue(args["box"]) then
if com.isTrue(args["box"]) then
local headline = args["headline"] or args["geojson"] or pagename
local headline = args["headline"] or geoobjects.geojson.arg or pagename
t = box.box{headline = headline, content = t, textalign = center}
t = box.box{headline = headline, content = t, textalign = center}
end
end