Module:Article history/config: Difference between revisions

Content deleted Content added
add former featured list candidates
add some more statuses
Line 800:
FL = {
id = 'FL',
image = 'Featured article star.svg',
imageSize = '48px',
imageCaption = 'Featured list',
text = function (articleHistoryObj)
local articlePage = articleHistoryObj.currentTitle.subjectPageTitle.prefixedText
local link
for i = #articleHistoryObj.actions, 1, -1 do
local actionObj = articleHistoryObj.actions[i]
if actionObj.id == 'FLC' then
link = actionObj:getLink()
break
end
end
link = link or 'Wikipedia:Featured list candidates/' .. articlePage
local text = "'''%s''' is a [[Wikipedia:Featured lists|featured list]], " ..
"which means it has been '''''[[%s|identified]]''''' as one of the best " ..
"[[Wikipedia:Lists|lists]] produced by the [[Wikipedia:Wikipedians|Wikipedia community]]. " ..
"If you can update or improve it, [[Wikipedia:Be bold|please do so]]."
return string.format(text, articlePage, link)
end,
categories = {'Wikipedia featured lists'}
},
FFL = {
id = 'FFL',
image = 'Cscr-featured-strike.svg',
imageCaption = 'Former featured list',
text = "'''$1''' is a [[Wikipedia:Former featured lists|former featured list]]. " ..
"Please see the links under Article milestones below for its original " ..
"nomination page and why it was removed. If it has improved again to " ..
"[[Wikipedia:Featured list criteria|featured list standard]], you may " ..
"[[Wikipedia:Featured list candidates|renominate]] the article to " ..
"become a [[Wikipedia:Featured list|featured list]]."
},
FFLC = {
Line 824 ⟶ 851:
GA = {
id = 'GA',
image = 'Symbol support vote.svg',
imageSize = '40px',
imageCaption = 'Good article',
text = function (articleHistoryObj)
local topic = articleHistoryObj.args.topic
if topic then
local mGATopics = require('Module:Good article topics')
topic = mGATopics._main(topic)
end
local link, display
if topic then
link = 'Wikipedia:Good articles/' .. topic
display = topic .. ' good articles'
else
link = 'Wikipedia:Good articles'
display = 'good articles'
end
local articlePage = articleHistoryObj.currentTitle.subjectPageTitle.prefixedText
local text = "'''%s''' has been listed as one of the '''''[[%s|%s]]''''' " ..
"under the [[Wikipedia:Good article criteria|good article criteria]]. " ..
"If you can improve it further, [[Wikipedia:Be bold|please do so]]. " ..
"<small>''If it no longer meets these criteria, you can " ..
"'''[[Wikipedia:Good article reassessment|reassess]]''' it''.</small>"
return string.format(text, articlePage, link, display)
end,
},
FGAN = {