8,756
edits
imported>RheingoldRiver No edit summary |
(make getColNames private) |
||
Line 218: | Line 218: | ||
end | end | ||
function getColNames(row) | function h.getColNames(row) | ||
cols = {} | cols = {} | ||
for colname, _ in pairs(row)do | for colname, _ in pairs(row)do | ||
Line 230: | Line 230: | ||
local tbl = mw.html.create('table') | local tbl = mw.html.create('table') | ||
:addClass('wikitable') | :addClass('wikitable') | ||
colNames = getColNames(result[1]) | colNames = h.getColNames(result[1]) | ||
util_html.printHeader(tbl, colNames) | util_html.printHeader(tbl, colNames) | ||
util_html.printRowsByList(tbl, result, colNames) | util_html.printRowsByList(tbl, result, colNames) |