Module:Infobox: Difference between revisions
Undid revision 783927044 by Jc86035 (talk) Doesn't play well with succession boxes
m>Jc86035 (merge from sandbox; still some pages with odd infoboxes over the place because of Tidy) |
m>Jc86035 |
||
Line 10: | Line 10: | ||
local origArgs | local origArgs | ||
local root | local root | ||
local function union(t1, t2) | local function union(t1, t2) | ||
Line 96: | Line 57: | ||
:cssText(args.headerstyle) | :cssText(args.headerstyle) | ||
:cssText(rowArgs.rowcellstyle) | :cssText(rowArgs.rowcellstyle) | ||
:wikitext | :wikitext(rowArgs.header) | ||
elseif rowArgs.data then | elseif rowArgs.data then | ||
local row = root:tag('tr') | local row = root:tag('tr') | ||
Line 125: | Line 86: | ||
:cssText(rowArgs.rowcellstyle) | :cssText(rowArgs.rowcellstyle) | ||
:newline() | :newline() | ||
:wikitext | :wikitext(rowArgs.data) | ||
end | end | ||
end | end | ||
Line 151: | Line 112: | ||
:css('font-weight', 'bold') | :css('font-weight', 'bold') | ||
:cssText(args.abovestyle) | :cssText(args.abovestyle) | ||
:wikitext | :wikitext(args.above) | ||
end | end | ||
Line 165: | Line 126: | ||
:cssText(args.belowstyle) | :cssText(args.belowstyle) | ||
:newline() | :newline() | ||
:wikitext | :wikitext(args.below) | ||
end | end | ||