"मोड्युल:Article history" का संशोधनहरू बिचको अन्तर

simplify the collapsible row and current status row code, and fix the out-of-order current status bug in the process
(only output the current status row if there is a status object present, and remove the "status-unknown" message as there should always be a status name if there is a status object)
(simplify the collapsible row and current status row code, and fix the out-of-order current status bug in the process)
-- notices are only included in the table if it is collapsed. Action rows
-- are always included.
local collapsibleTable
if isCollapsed or nActionRows > 0 then
-- Collapsible table base
local collapsibleTable = tableRoot
:tag('tr')
:tag('td')
collapsibleTable:node(htmlObj)
end
end
-- Collapsible notices and current status
-- These are only included in the collapsible table if it is collapsed. Otherwise,
-- Otherwise, they are added afterwards, so that they can align with the status
-- and notices.
do
local tableNode, statusColspan
if isCollapsed then
tableNode = collapsibleTable
for _, obj in ipairs(collapsibleNotices) do
statusColspan = 3
collapsibleTable:node(self:try(obj.exportHtml, obj, self, true))
endelse
tableNode = tableRoot
statusColspan = 2
end
-- CurrentCollapsible status.notices
for _, obj in ipairs(collapsibleNotices) do
collapsibleTabletableNode:node(self:try(obj.exportHtml, obj, self, trueisCollapsed))
end
-- Current status
if statusObj and nActionRows > 1 then
tableNode
collapsibleTable
:tag('tr')
:tag('td')
:attr('colspan', 3statusColspan)
:wikitext(self:message('status-blurb', statusObj.name))
end
end
 
-- Add the collapsible notices if we are not collapsed.
if not isCollapsed then
for _, obj in ipairs(collapsibleNotices) do
tableRoot:node(self:try(obj.exportHtml, obj, self, false))
end
end
 
-- Get the categories. We have to do this before the error row, so that
"https://ne.wikipedia.org/wiki/विशेष:MobileDiff/497857" बाट अनुप्रेषित