19.821
Bearbeitungen
(+ <tbody>) |
(+ TableLine()) |
||
| Zeile 5: | Zeile 5: | ||
-- mw.logObject(frame.args, "frame.args") | -- mw.logObject(frame.args, "frame.args") | ||
local t = | local t = | ||
"<table class=\"wikitable sortable\" border=\"1\"> | "<table class=\"wikitable sortable\" border=\"1\"><tbody>\n" .. | ||
"<tr>\n" | |||
" | |||
for _, a in ipairs(frame.args) do | for _, a in ipairs(frame.args) do | ||
t = t .. " | t = t .. " <th>" .. a .. "</th>\n" | ||
end | |||
t = t .. "</tr>\n" | |||
-- mw.logObject(t, "t") | |||
return t | |||
end | |||
function p.TableLine(frame) | |||
-- mw.log("TableLine(frame)") | |||
-- mw.logObject(frame.args, "frame.args") | |||
local t = "" | |||
for _, a in ipairs(frame.args) do | |||
t = t .. " <td>" .. a .. "</td>\n" | |||
end | end | ||
-- mw.logObject(t, "t") | -- mw.logObject(t, "t") | ||
return t | return t | ||
| Zeile 18: | Zeile 28: | ||
function p.TableFooter(frame) | function p.TableFooter(frame) | ||
-- mw.log("TableFooter(frame)") | -- mw.log("TableFooter(frame)") | ||
local t = | local t = "</tbody></table>\n" | ||
-- mw.logObject(t, "t") | -- mw.logObject(t, "t") | ||
return t | return t | ||