Module:Article history/config: Difference between revisions

Content deleted Content added
add default status icon sizes, add comments for statuses table fields, and add the FFA status data
add FA details
Line 751:
-- imageSmallSize: The image size if we are outputting a small template. The
-- default is defined in defaultSmallStatusIconSize.
-- text: The status text. This may be a string or a function. If it is a
-- function, it takes an article history object as input, and should return
-- the text string. If it is a string, it can have the following parameters:
-- $1 - The full page name of the article or subject page
-- categories: An array of categories used by the status.
Line 758 ⟶ 760:
FA = {
id = 'FA',
image = 'Featured article star.svg',
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 == 'FAC' then
link = actionObj:getLink()
break
end
end
link = link or 'Wikipedia:Featured article candidates/' .. articlePage
local text = "'''%s''' is a [[Wikipedia:Featured articles|featured article]]; " ..
"it (or a previous version of it) has been '''''[[%s|identified]]''''' " ..
"as one of the best articles produced by the [[Wikipedia:Wikipedians|Wikipedia community]]. " ..
"Even so, if you can update or improve it, [[Wikipedia:Be bold|please do so]]."
return string.format(text, articlePage, link)
end,
categories = {'Wikipedia featured articles'}
},
FFA = {
id = 'FFA',
image = 'Featured article star - cross.svg',
imageSize = '48px',
text = "'''$1''' is a [[Wikipedia:Former featured articles|former featured article]]. " ..
"Please see the links under Article milestones below for its original nomination page " ..
Line 772 ⟶ 793:
id = 'FFAC',
aliases = {'FACFAILED'},
image = 'Cscr-former.svg',
},
FL = {