|
|
| Zeile 43: |
Zeile 43: |
|
| |
|
| -- Pre-Processing und String-Länge checken | | -- Pre-Processing und String-Länge checken |
| t = fbdata.frame:preprocess(t)
| |
| t = t .. com.returnStringCheck(t)
| |
| -- mw.log("t = " .. t)
| |
| return t
| |
| end
| |
|
| |
| function p.Weiterleitung(frame)
| |
| -- mw.log("Weiterleitung(frame)")
| |
| -- Konsolenzeile zum Debuggen:
| |
| -- =p.Weiterleitung{pargs={location="BlaBla,Fürth,Bayern,Deutschland"}}
| |
|
| |
| -- Basis-Faktenbox-Daten (Klasse/Kategorie/Formular)
| |
| local fbdata = fab.fbdata(frame)
| |
| fbdata.klasse = {"Gebäude"}
| |
| fbdata.kategorie = {"Gebäude"}
| |
|
| |
| local t = p.weiterleitung(fbdata)
| |
|
| |
| -- Pre-Processing und String-Länge checken
| |
| -- mw.log("t = " .. t)
| |
| t = fbdata.frame:preprocess(t) | | t = fbdata.frame:preprocess(t) |
| t = t .. com.returnStringCheck(t) | | t = t .. com.returnStringCheck(t) |