15.075
Bearbeitungen
(missing local t) |
(Verschiebungen von Template/Straße zu Modul/hier) |
||
| Zeile 1: | Zeile 1: | ||
local p = {} --p stands for package | local p = {} --p stands for package | ||
local c = require( "Module:Common" ) | |||
function p.Faktenbox(frame) | function p.Faktenbox(frame) | ||
local args = frame:getParent().args | local args = c.shallowcopy(frame:getParent().args) | ||
if args["Hausnummer"] ~= nil -- Hausnummer ohne Buchstaben extrahieren, um damit PLZ zu ermitteln | |||
then | |||
local HausnummerOhneBuchstaben = tonumber(string.match("0"..args["Hausnummer"], "%d+")) | |||
if HausnummerOhneBuchstaben > 0 | |||
then | |||
args["HausnummerOhneBuchstaben"] = HausnummerOhneBuchstaben | |||
end | |||
end | |||
args["PLZ"] = frame:expandTemplate{title = 'StraßeHausnummer2PLZ/Work', args=args} | |||
local tpl_bild = p.bild(frame, args) | local tpl_bild = p.bild(frame, args) | ||