Modul:HTML: Unterschied zwischen den Versionen

Aus FürthWiki

60 Bytes hinzugefügt ,  Gestern um 11:29
+ tableLine()
(typo)
(+ tableLine())
Zeile 16: Zeile 16:


function p.TableLine(frame)
function p.TableLine(frame)
-- mw.log("TableLine(frame)")
return p.tableLine(frame.args)
-- mw.logObject(frame.args, "frame.args")
end
 
function p.tableLine(content)
-- mw.log("tableLine(content)")
-- mw.logObject(content, "content")
local t = "<tr>\n"
local t = "<tr>\n"
for _, a in ipairs(frame.args) do
for _, a in ipairs(content) do
t = t .. "  <td>" .. a .. "</td>\n"
t = t .. "  <td>" .. a .. "</td>\n"
end
end