Modul:HTML: Unterschied zwischen den Versionen

line
(+ tableLine())
(line)
 
Zeile 19: Zeile 19:
end
end


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