"मोड्युल:Article history" का संशोधनहरू बिचको अन्तर
Content deleted Content added
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.
if isCollapsed or nActionRows > 0 then
-- Collapsible table base
:tag('tr')
:tag('td')
Line १,२८१ ⟶ १,२८२:
collapsibleTable:node(htmlObj)
end
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))▼
tableNode = tableRoot
statusColspan = 2
end
--
end▼
-- Current status
if statusObj and nActionRows > 1 then
tableNode
▲ collapsibleTable
:tag('tr')
:tag('td')
:attr('colspan',
:wikitext(self:message('status-blurb', statusObj.name))
end
end
▲ end
▲ end
-- Get the categories. We have to do this before the error row, so that
|