Module:Aligned table: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 93: | Line 93: | ||
-- build the table content | -- build the table content | ||
if isnotempty(args['title']) then | |||
root:tag('caption'):wikitext(title); | |||
end | |||
if isnotempty(args['above']) then | |||
local row = root:tag('tr') | |||
local cell = row:tag('th') | |||
cell:attr('colspan', cols) | |||
cell:wikitext(above) | |||
end | |||
for j=1,rows do | for j=1,rows do | ||
-- start a new row | -- start a new row |