Módulo:Infobox: diferenças entre revisões

Conteúdo apagado Conteúdo adicionado
Linha 47:
.tag('tr')
.addClass(rowArgs.rowclass)
.tagattr('brid', {selfClosing = true}rowArgs.rowid)
.tag('th')
.attr('colspan', 2)
.doneattr('id', rowArgs.headerid)
.addClass(rowArgs.class)
.addClass(args.headerclass)
Linha 57 ⟶ 59:
local row = root.tag('tr')
row.addClass(rowArgs.rowclass)
row.attr('id', rowArgs.rowid)
if rowArgs.label then
row
.tag('th')
.attr('scope', 'row')
.attr('id', rowArgs.labelid)
.css('text-align', 'left')
.cssText(args.labelstyle)
Linha 74 ⟶ 78:
end
dataCell
.attr('id', rowArgs.dataid)
.addClass(rowArgs.class)
.cssText(rowArgs.datastyle)
Linha 151 ⟶ 156:
if caption then
data
.tag('br', {selfClosing = true})
.done()
.tag('div')
.cssText(args.captionstyle)
Linha 178 ⟶ 181:
datastyle = args.datastyle,
class = args['class' .. tostring(num)],
rowclass = args['rowclass' .. tostring(num)],
dataid = args['dataid' .. tostring(num)],
labelid = args['labelid' .. tostring(num)],
headerid = args['headerid' .. tostring(num)],
rowid = args['rowid' .. tostring(num)]
})
end
Linha 369 ⟶ 376:
{prefix = 'data', depend = {'label'}},
{prefix = 'rowclass'},
{prefix = 'class'},
{prefix = 'dataid'},
{prefix = 'labelid'},
{prefix = 'headerid'},
{prefix = 'rowid'}
}, 50)
preprocessSingleArg('headerclass')