Module:Side box: Difference between revisions

+textclass parameter
m (1 revision imported)
(+textclass parameter)
Line 42: Line 42:
end
end


-- Copy over data that doesn't need adjusting
-- Copy over data that does not need adjusting
local argsToCopy = {
local argsToCopy = {
-- Classes
'textclass',
-- Styles
-- Styles
'style',
'style',
Line 107: Line 110:
end
end
local textCell = bodyRow:newline():tag('td')
local textCell = bodyRow:newline():tag('td')
textCell:addClass('mbox-text plainlist')
textCell:addClass('mbox-text')
textCell:addClass(data.textclass or 'plainlist')
if data.textstyle then
if data.textstyle then
textCell:cssText(data.textstyle)
textCell:cssText(data.textstyle)
Anonymous user