Module:Article history/config: Difference between revisions

Content deleted Content added
move FFA detection from the main module, and put double statuses in the statuses table with an "isDouble" field, for simplicity of looking up codes
use status rather than currentStatus
Line 58:
local result = actionObj:getResult()
if result == 'demoted' or result == 'merged' then
local currentStatusstatus = articleHistoryObj:getCurrentStatusgetStatus()
local sortKey = articleHistoryObj.currentTitle.subjectPageTitle.prefixedText
if currentStatusstatus == 'FA' or currentStatusstatus == 'FL' then
sortKey = '#' .. sortKey
end
Line 156:
if result == 'demoted' or result == 'merged' then
local sortKey
if articleHistoryObj:getCurrentStatusgetStatus() == 'FL' then
sortKey = '#' .. articleHistoryObj.currentTitle.subjectPageTitle.prefixedText
else
Line 278:
function (actionObj, articleHistoryObj)
if actionObj:getResult() == 'not listed' then
local currentStatusstatus = articleHistoryObj:getCurrentStatusgetStatus()
if currentStatusstatus ~= 'FA'
and currentStatusstatus ~= 'GA'
and currentStatusstatus ~= 'FFA'
then
return 'Former good article nominees', articleHistoryObj.currentTitle.text
Line 322:
function (actionObj, articleHistoryObj)
if actionObj:getResult() == 'delisted' then
local currentStatusstatus = articleHistoryObj:getCurrentStatusgetStatus()
if currentStatusstatus ~= 'FA'
and currentStatusstatus ~= 'GA'
then
return 'Delisted good articles', articleHistoryObj.currentTitle.text