Module:Aligned table: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 94: Line 94:
-- build the table content
-- build the table content
if isnotempty(args['title']) then
if isnotempty(args['title']) then
root:tag('caption'):wikitext(title);
local caption = root:tag('caption')
caption:cssText(args['titlestyle'])
caption:wikitext(args['title'])
end
end
if isnotempty(args['above']) then
if isnotempty(args['above']) then
Line 100: Line 102:
local cell = row:tag('th')
local cell = row:tag('th')
cell:attr('colspan', cols)
cell:attr('colspan', cols)
cell:wikitext(above)
cell:cssText(args['abovestyle'])
cell:wikitext(args['above'])
end
end
for j=1,rows do
for j=1,rows do
Anonymous user