Module:Article history/config: Difference between revisions

Content deleted Content added
add more status details; add status names, and remove image captions when they are duplicates of the name
use the new scheme for getting action objects
Line 809:
text = function (articleHistoryObj)
local articlePage = articleHistoryObj.currentTitle.subjectPageTitle.prefixedText
local actions = articleHistoryObj:getActionObjects()
local link
for i = #articleHistoryObj.actions, 1, -1 do
local actionObj = articleHistoryObj.actions[i]
if actionObj.id == 'FAC' then
link = actionObj:getLink()
Line 850 ⟶ 851:
text = function (articleHistoryObj)
local articlePage = articleHistoryObj.currentTitle.subjectPageTitle.prefixedText
local actions = articleHistoryObj:getActionObjects()
local link
for i = #articleHistoryObj.actions, 1, -1 do
local actionObj = articleHistoryObj.actions[i]
if actionObj.id == 'FLC' then
link = actionObj:getLink()
Line 1,085 ⟶ 1,087:
then
local ffaObj
forlocal iactions = #articleHistoryObj.actions, 1, -1 do:getActionObjects()
localfor actionObji = articleHistoryObj.#actions[i], 1, -1 do
local actionObj = actions[i]
if actionObj.id == 'FAR' and actionObj:getResult() == 'demoted' then
ffaObj = actionObj