Module:Article history/config: Difference between revisions

Content deleted Content added
add ITN and OTD and generalise the isActive, data and text functions as helper functions
make ITN and OTD work nicely with plurals
Line 1,700:
text = function (articleHistoryObj, collapsibleNoticeObj)
local data = collapsibleNoticeObj:getData(articleHistoryObj)
local intro
local blurb = "A news item involving this article was featured " ..
if #data > 1 then
"on Wikipedia's [[Main Page]] in the " ..
intro = 'News items involving this article were'
else
local blurb intro = "'A news item involving this article was featured " ..'
end
local blurb = intro ..
" featured on Wikipedia's [[Main Page]] in the " ..
"''\"[[Template:In the news|In the news]]\"'' column $1."
return makeDateText(data, blurb)
Line 1,721 ⟶ 1,727:
text = function (articleHistoryObj, collapsibleNoticeObj)
local data = collapsibleNoticeObj:getData(articleHistoryObj)
local intro
local blurb = "A fact from this article was featured " ..
if #data > 1 then
"on Wikipedia's [[Main Page]] in the " ..
intro = 'Facts from this article were'
else
local blurb intro = "'A fact from this article was featured " ..'
end
local blurb = intro ..
" featured on Wikipedia's [[Main Page]] in the " ..
"''\"[[Wikipedia:Selected anniversaries|On this day...]]\"'' " ..
"column $1."