25.434
Bearbeitungen
(Die Seite wurde neu angelegt: „local p = {} local com = require("Module:Common") local str = require("Module:String") local atr = require("Module:Attribut") function p.Faktenbox( frame ) local args = frame:getParent().args local t = p.daten( frame, args ) -- Use preprocess to render the factbox and all contens at once return frame:preprocess(t) end function p.daten(frame, args) local title = mw.title.getCurrentTitle().text local t = '<table class="wikitable">'.. '<th>[[…“) |
Keine Bearbeitungszusammenfassung |
||
| Zeile 4: | Zeile 4: | ||
local str = require("Module:String") | local str = require("Module:String") | ||
local atr = require("Module:Attribut") | local atr = require("Module:Attribut") | ||
local frm = require("Modul:Formular") | |||
function p.Faktenbox( frame ) | function p.Faktenbox( frame ) | ||
| Zeile 90: | Zeile 91: | ||
end | end | ||
return attr_data | return attr_data | ||
end | |||
function p.Formular(frame, klasse) | |||
-- Kommandozeile zum Debuggen: | |||
-- frame=mw.getCurrentFrame(); print(p.Formular(frame, "Bauwerk")) | |||
local t = "" | |||
local attr_data = p.getAttrData(klasse) | |||
t = frm.attrForm(frame, attr_data) | |||
return t | |||
end | end | ||
return p | return p | ||