Baustelle.svg Eine Bearbeitungssperre steht an, welche von 23. Januar bis einschließlich 25. Januar dauern wird. In dieser Zeit wird das FürthWiki weiterhin lesbar, aber nicht bearbeitbar sein.

Modul:Straße: Unterschied zwischen den Versionen

Aus FürthWiki

fix streetlocation
(Vorlage:Straße/Karte/Lokation integriert)
(fix streetlocation)
Zeile 90: Zeile 90:
local args = com.shallowcopy(fbdata.pargs)
local args = com.shallowcopy(fbdata.pargs)
if com.isEmpty(args["location"]) and not com.isTrue(args["Ehemals"]) then
if com.isEmpty(args["location"]) and not com.isTrue(args["Ehemals"]) then
args["location"] = fbdata.pagename .. "," .. (args["Ort"] or "Fürth")
args["streetlocation"] = fbdata.pagename .. "," .. (args["Ort"] or "Fürth")
if  #fbdata.plz > 0 then
if  #fbdata.plz > 0 then
args["location"] = args["location"] .. "," .. fbdata.plz[1]
args["streetlocation"] = args["streetlocation"] .. "," .. fbdata.plz[1]
end
end
args["location"] = args["location"] .. ",Bayern,Deutschland"
args["streetlocation"] = args["streetlocation"] .. ",Bayern,Deutschland"
end
end
-- mw.logObject(args, "args")
-- mw.logObject(args, "args")