Content deleted Content added
set width to 80% for large templates instead of using the messagebox class, as it loads unnecessary CSS |
catch errors thrown the row objects by the row objects and render them in a new row at the bottom of the table |
||
Line 470:
t.cfg = self.cfg
t.currentTitle = self.currentTitle
table.insert(actions, actionObj)
end
Line 501 ⟶ 502:
statusId = self.cfg.getStatusIdFunction(self)
else
statusId = self:
self.getStatusIdForCode, self,
self.args.currentstatus
)
end
if not statusId then
Line 509 ⟶ 513:
-- Make a new status object.
local
id = statusId,
currentTitle = self.currentTitle,
cfg = self.cfg,
isSmall = self.isSmall
}
local statusObj = self:try(Status.new, statusObjData) or false
self.statusObj = statusObj
return statusObj
Line 548 ⟶ 553:
local statusObj = self:getStatusObj()
if statusObj then
root:node(
end
Line 554 ⟶ 559:
local notices = self:getNoticeObjects()
for _, noticeObj in ipairs(notices) do
root:node(
end
Line 629 ⟶ 634:
for i, t in ipairs{actions, collapsibleNotices} do
for j, obj in ipairs(t) do
collapsibleTable:node(
end
end
end
-- Error row
if #self.errors > 0 then
local errorList = root
:tag('tr')
:tag('td')
:attr('colspan', 2)
:addClass('mbox-text')
:tag('ul')
:addClass('error')
:css('font-weight', 'bold')
for _, msg in ipairs(self.errors) do
errorList:tag('li'):wikitext(msg)
end
end
|