Editing Module:Aligned table
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 98: | Line 98: | ||
-- build the table content | -- build the table content | ||
if isnotempty(args['title']) then | if isnotempty(args['title']) then | ||
root:tag('caption'):wikitext(title); | |||
end | end | ||
if isnotempty(args['above']) then | if isnotempty(args['above']) then | ||
Line 106: | Line 104: | ||
local cell = row:tag('th') | local cell = row:tag('th') | ||
cell:attr('colspan', cols) | cell:attr('colspan', cols) | ||
cell:wikitext(above) | |||
cell:wikitext( | |||
end | end | ||
for j=1,rows do | for j=1,rows do |