Content deleted Content added
←Created page with '-- -- This module implements {{Infobox}} -- local p = {} local HtmlBuilder = require('Module:HtmlBuilder') local args = {} local origArgs local root func...' |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 10:
local origArgs
local root
local cellborder='2px solid #fff' --!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
function union(t1, t2)
Line 48 ⟶ 49:
.addClass(rowArgs.rowclass)
.tag('th')
.css('border', cellborder) --!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.attr('colspan', 2)
.addClass(rowArgs.class)
Line 59 ⟶ 61:
row
.tag('th')
.css('border', cellborder) --!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.attr('scope', 'row')
.css('text-align', 'left')
Line 67 ⟶ 70:
local dataCell = row.tag('td')
dataCell.css('border', cellborder) --!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if not rowArgs.label then
dataCell
Line 97 ⟶ 101:
.tag('th')
.attr('colspan', 2)
.
.css('text-align', 'center')
.css('font-size', '125%')
.css('font-weight', 'bold')
.cssText(args.abovestyle)▼
.tag('div')
.css('padding-top', '5px') -- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.css('padding-bottom', '5px') -- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.addClass(args.aboveclass) -- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
end
Line 111 ⟶ 121:
.tag('tr')
.tag('td')
.css('border', cellborder) --!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.attr('colspan', '2')
.addClass(args.belowclass)
Line 223 ⟶ 234:
.addClass('infobox')
.addClass(args.bodyclass)
.attr('cellspacing',
.css('border-spacing', '3px') --!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.css('margin','0') --!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.css('border-spacing','0') --!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.css('padding','0') --!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if args.subbox == 'yes' then
root
|