17.669
Bearbeitungen
(- returnStringCheck()) |
(Umstellung fbdata.attr und subobject, Sonstiges) |
||
| Zeile 1: | Zeile 1: | ||
local p = {} | local p = {} | ||
local geo = require("Modul:Geo") | local geo = require("Modul:Geo") | ||
| Zeile 15: | Zeile 14: | ||
-- Konsolenzeile zum Debuggen: | -- Konsolenzeile zum Debuggen: | ||
-- =p.Faktenbox{pargs={Bild="Schwabacher Straße 12 Dez 2020 1.jpg",["Straße"]="Schwabacher Straße",location="Rathaus Fürth",Objekt="Häusle"}} | -- =p.Faktenbox{pargs={Bild="Schwabacher Straße 12 Dez 2020 1.jpg",["Straße"]="Schwabacher Straße",location="Rathaus Fürth",Objekt="Häusle"}} | ||
local t = "" | |||
-- Basis-Faktenbox-Daten (Klasse/Kategorie/Formular) | -- Basis-Faktenbox-Daten (Klasse/Kategorie/Formular) | ||
-- Kein(e) Klasse/Kategorie/Formular! | -- Kein(e) Klasse/Kategorie/Formular! | ||
local fbdata = fab_common. | local fbdata = fab_common.getFbdata_(frame) | ||
-- Tabs einsammeln und zusammenfügen | -- Tabs einsammeln und zusammenfügen | ||
t = t .. | |||
"<div class = factbox><tabs>" .. | "<div class = factbox><tabs>" .. | ||
fab_tabs.bildTab_(fbdata) .. | fab_tabs.bildTab_(fbdata) .. | ||
| Zeile 29: | Zeile 29: | ||
-- Sonstige gemeinsame Dinge anfügen (Klasse, Formular, Kategorien, Wartung, ...) | -- Sonstige gemeinsame Dinge anfügen (Klasse, Formular, Kategorien, Wartung, ...) | ||
fbdata.attr.subid = fbdata.pargs.subid or "" | |||
t = t .. fab_common.preprocess_(fbdata, false) | |||
-- mw.logObject(t, "t") | |||
-- Pre-Processing und String-Länge checken | -- Pre-Processing und String-Länge checken | ||
t = fbdata.frame:preprocess(t) | |||
-- mw. | -- mw.logObject(t, "t") | ||
return | return t | ||
end | end | ||
| Zeile 57: | Zeile 58: | ||
-- wrapper für functions von Modul:Faktenbox/Common | -- wrapper für functions von Modul:Faktenbox/Common | ||
function p. | function p.preprocess(...) return fab_common.preprocess_(...) end | ||
function p. | function p.getFbdata(...) return fab_common.getFbdata_(...) end | ||
return p | return p | ||