Module:Article history/config: Difference between revisions

Content deleted Content added
use status rather than currentStatus
fix status object method names
Line 58:
local result = actionObj:getResult()
if result == 'demoted' or result == 'merged' then
local status = articleHistoryObj:getStatusgetStatusId()
local sortKey = articleHistoryObj.currentTitle.subjectPageTitle.prefixedText
if status == 'FA' or status == 'FL' then
Line 156:
if result == 'demoted' or result == 'merged' then
local sortKey
if articleHistoryObj:getStatusgetStatusId() == 'FL' then
sortKey = '#' .. articleHistoryObj.currentTitle.subjectPageTitle.prefixedText
else
Line 278:
function (actionObj, articleHistoryObj)
if actionObj:getResult() == 'not listed' then
local status = articleHistoryObj:getStatusgetStatusId()
if status ~= 'FA'
and status ~= 'GA'
Line 322:
function (actionObj, articleHistoryObj)
if actionObj:getResult() == 'delisted' then
local status = articleHistoryObj:getStatusgetStatusId()
if status ~= 'FA'
and status ~= 'GA'
Line 829:
local statuses = articleHistoryObj.cfg.statuses
local statusCode = articleHistoryObj.args.currentstatus
local statusId = articleHistoryObj:getStatusIdgetStatusIdForCode(statusCode)
 
-- Check for former featured articles.