Anonymous user
Module:Side box: Difference between revisions
+textclass parameter
Johnrdorazio (talk | contribs) m (1 revision imported) |
(+textclass parameter) |
||
Line 42: | Line 42: | ||
end | end | ||
-- Copy over data that | -- 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) |