Module:Article history/config: Difference between revisions

Content deleted Content added
make resultId a property rather than a method, and add the date format for actions
swap the position of articleHistoryObj and actionObj in the action object functions
Line 86:
FFA = true
},
categories = function (actionObjarticleHistoryObj, articleHistoryObjactionObj)
local ret = {}
local result = actionObj.resultId
Line 135:
FFAC = true
},
categories = function (actionObjarticleHistoryObj, articleHistoryObjactionObj)
local ret = {}
if actionObj.resultId == 'not kept' then
Line 189:
FFL = true
},
categories = function (actionObjarticleHistoryObj, articleHistoryObjactionObj)
local ret = {}
local result = actionObj.resultId
Line 316:
FFA = true
},
categories = function (actionObjarticleHistoryObj, articleHistoryObjactionObj)
local ret = {}
if actionObj.resultId == 'not listed' then
Line 363:
FFA = true
},
categories = function (actionObjarticleHistoryObj, articleHistoryObjactionObj)
local ret = {}
if actionObj.resultId == 'delisted' then
Line 435:
WPR = {
id = 'WPR',
name = function (actionObjarticleHistoryObj, articleHistoryObjactionObj)
local names = {
approved = 'WikiProject approved revision',
Line 448:
approved = {
id = 'approved',
text = function(actionObjarticleHistoryObj, articleHistoryObjactionObj)
if actionObj.oldid then
local url = mw.uri.fullUrl(