15.133
Bearbeitungen
(Variablen Schreibweise) |
(Stadtteil2PLZ optimiert) |
||
| Zeile 97: | Zeile 97: | ||
function p.Stadtteil2PLZ(frame) | function p.Stadtteil2PLZ(frame) | ||
-- mw.logObject(frame) | -- mw.logObject(frame) | ||
local | 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 | local stadtteile = str.splitAndStrip(stadtteile, ";") | ||
local | local plz = p.stadtteil2PLZ(stadtteile) | ||
plz = str.list(plz, ";") | |||
end | end | ||
-- mw.log( | -- mw.log(plz) | ||
return | return plz | ||
end | end | ||