Content deleted Content added
edit collapsible collapsed |
add row and stuff |
||
Line 337:
end
-- Collapsible setting for tmbox▼
if self.isSmall then
self:addClass(cfg.smallClass or 'mbox-small')
end
▲ -- Collapsible setting for tmbox
local setCollapsible = cfg.collapse and args.collapse
if self.setCollapsible then
self.tableCollapseStyle = 'border-collapse:separate;'
end
-- Left image settings.
Line 510:
if self.setCollapsible then
boxTable
:addClass ('mw-collapsible mw-made-collapsible collapsible collapsed wpbs mbox-inside')
:cssText (self.tableCollapseStyle)
:attr('cellspacing', '4')
Line 527:
local row = boxTable:tag('tr')
if self.imageLeft then
if self.setCollapsible then
local imageLeftCell = row:tag('td'):addClass('mbox-image')▼
local imageLeftCell = row:tag('td'):addClass('mbox-image'):attr('rowspan', '2')
else
▲ local imageLeftCell = row:tag('td'):addClass('mbox-image')
end
if self.imageCellDiv then
-- If we are using a div, redefine imageLeftCell so that the image
Line 559 ⟶ 563:
header
:cssText(self.headerstyle or nil)
:wikitext((
else
header --consider removing this else
:cssText(self.headerstyle or nil)
:wikitext(self.headertext or nil)
Line 570 ⟶ 574:
-- Add the text.
if self.setCollapsible then
local textCell = row:tag('td'):addClass('mbox-text')▼
local textCell =
boxTable:tag('tr')
:tag('td'):addClass('mbox-text')
else
end
if self.useCollapsibleTextFields then
-- The message box uses advanced text parameters that allow things to be
|