Modul:Geo: Unterschied zwischen den Versionen

Stadtteil2PLZ optimiert
(Variablen Schreibweise)
(Stadtteil2PLZ optimiert)
Zeile 97: Zeile 97:
function p.Stadtteil2PLZ(frame)
function p.Stadtteil2PLZ(frame)
-- mw.logObject(frame)
-- mw.logObject(frame)
local plz_list = ""
local plz = ""
local stadtteile = frame.args[1]
local stadtteile = frame.args[1]
if not com.isEmpty(stadtteile) then
if not com.isEmpty(stadtteile) then
local stadtteilTable = str.split(stadtteile, ";")
local stadtteile = str.splitAndStrip(stadtteile, ";")
local plz_table = p.stadtteil2PLZ(stadtteilTable)
local plz = p.stadtteil2PLZ(stadtteile)
plz_list = str.list(plz_table, ";")
plz = str.list(plz, ";")
end
end
-- mw.log(plz_list)
-- mw.log(plz)
return plz_list
return plz
end
end