Module:Article history/config: Difference between revisions

Content deleted Content added
convert the main page date to the new scheme
pass the article history object through when using Row:getData
Line 466:
end,
icon = function (articleHistoryObj, noticeObj)
local data = noticeObj:getData(articleHistoryObj)
if data.isInFeaturedTopic then
return 'Cscr-featuredtopic.svg'
Line 474:
end,
iconCaption = function (articleHistoryObj, noticeObj)
local data = noticeObj:getData(articleHistoryObj)
if data.isInFeaturedTopic then
return 'Featured topic star'
Line 484:
iconSmallSize = '30px',
text = function (articleHistoryObj, noticeObj)
local data = noticeObj:getData(articleHistoryObj)
local article = articleHistoryObj.currentTitle.subjectPageTitle.prefixedText
 
Line 569:
end,
categories = function (articleHistoryObj, noticeObj)
local data = noticeObj:getData(articleHistoryObj)
local status = articleHistoryObj:getStatusId()
local cats = {}
Line 676:
iconCaption = 'Main Page trophy',
text = function (articleHistoryObj, noticeObj)
local data = noticeObj:getData(articleHistoryObj)
if data.categoryOnly then
return nil
Line 701:
end,
categories = function (articleHistoryObj, noticeObj)
local data = noticeObj:getData(articleHistoryObj)
local cats = {}
if data.categoryOnly then
Line 1,552:
end,
text = function (articleHistoryObj, collapsibleNoticeObj)
local data = collapsibleNoticeObj:getData(articleHistoryObj)
local text = {}
 
Line 1,581:
end,
collapsibleText = function (articleHistoryObj, collapsibleNoticeObj)
local data = collapsibleNoticeObj:getData(articleHistoryObj)
local ctext = {}
if #data == 1 and data[1].entry then