Content deleted Content added
use the new scheme for getting action objects |
make resultId a property rather than a method, and add the date format for actions |
||
Line 45:
results = {
promoted = {
id = 'promoted',
text = 'Promoted',
aliases = {'pass', 'passed'}
},
['not promoted'] = {
id = 'not promoted',
text = 'Not promoted',
aliases = {'fail', 'failed'}
Line 86 ⟶ 88:
categories = function (actionObj, articleHistoryObj)
local ret = {}
local result = actionObj
if result == 'demoted' or result == 'merged' then
local status = articleHistoryObj:getStatusId()
Line 135 ⟶ 137:
categories = function (actionObj, articleHistoryObj)
local ret = {}
if actionObj
ret[#ret + 1] = Category.new(
'Wikipedia former brilliant prose',
Line 189 ⟶ 191:
categories = function (actionObj, articleHistoryObj)
local ret = {}
local result = actionObj
if result == 'demoted' or result == 'merged' then
local sortKey
Line 316 ⟶ 318:
categories = function (actionObj, articleHistoryObj)
local ret = {}
if actionObj
local status = articleHistoryObj:getStatusId()
if status ~= 'FA'
Line 363 ⟶ 365:
categories = function (actionObj, articleHistoryObj)
local ret = {}
if actionObj
local status = articleHistoryObj:getStatusId()
if status ~= 'FA'
Line 440 ⟶ 442:
maindate = "Today's featured article"
}
local result = actionObj
return result and names[result] or 'WikiProject peer review'
end,
Line 1,090 ⟶ 1,092:
for i = #actions, 1, -1 do
local actionObj = actions[i]
if actionObj.id == 'FAR' and actionObj
ffaObj = actionObj
break
Line 1,138 ⟶ 1,140:
date = 'date',
link = 'link',
result = '
oldid = 'oldid'
},
Line 1,192 ⟶ 1,194:
-- The text displayed when the current status is unknown.
['status-unknown'] = '?',
-- The format to display the action dates in. The syntax is the same as the
-- #time parser function.
['action-date-format'] = 'F j, Y'
}
|