Content deleted Content added
add some more statuses |
convert categories functions to use Category.new, and allow the function to output an array of category objects, rather than trying to use an array of functions |
||
Line 2:
-- Configuration data for [[Module:Article history]]
-------------------------------------------------------------------------------
local Category = require('Module:Article history/Category')
return {
Line 54 ⟶ 56:
FFA = true
},
categories =
local ret = {}
function (actionObj, articleHistoryObj)▼
end▼
return 'Wikipedia former featured articles', sortKey▼
end
ret[#ret + 1] = Category.new(
sortKey
)
end
return ret
end
},
BP = {
Line 100 ⟶ 105:
FFAC = true
},
categories =
local ret = {}
function (actionObj, articleHistoryObj)▼
'Wikipedia former brilliant prose', articleHistoryObj.currentTitle.text end
return ret
end
},
FLC = {
Line 151 ⟶ 159:
FFL = true
},
categories =
local ret = {}
function (actionObj, articleHistoryObj)▼
end▼
return 'Wikipedia former featured lists', sortKey▼
end
ret[#ret + 1] = Category.new(
sortKey
)
end
return ret
end
},
FTC = {
Line 275 ⟶ 286:
FFA = true
},
categories =
local ret = {}
'Former good article nominees', articleHistoryObj.currentTitle.text end
end
return ret
end
},
GAR = {
Line 319 ⟶ 333:
FFA = true
},
categories =
local ret = {}
'Delisted good articles', articleHistoryObj.currentTitle.text end
end
},
GTC = {
Line 876 ⟶ 892:
return string.format(text, articlePage, link, display)
end,
local ret = {}
if title.namespace == 1 then
ret[#ret + 1] = Category.new('Wikipedia good articles')
ret[#ret + 1] = Category.new('Wikipedia CD Selection-GAs')
ret[#ret + 1] = Category.new('GA-Class Good articles')
if topic then
local mGATopics = require('Module:Good article topics')
topic = mGATopics._main(topic)
if topic then
ret[#ret + 1] = Category.new(
topic .. ' good articles',
title.text
)
else
ret[#ret + 1] = Category.new(
'Good articles without topic parameter',
title.text
)
end
return ret
end
},
FGAN = {
|