Module:Article history/config: Difference between revisions

Content deleted Content added
fix Main Page date category logic
fix problem with the data for the Main Page date being returned too early for templates with no "maindate" parameter
Line 917:
)
end
else
return data
end
 
data.currentTimestamp = getYmdDate()
 
else
-- The first Today's Featured List was on 13 June 2011.
-- Whether the page is a list or not for the purposes of the Main
data.isList = (status == 'FL' or status == 'FFL') and data.mainDateTimestamp >= 20110613
-- Page. The first Today's Featured List was on 13 June 2011., so
-- lists that were featured before then count as articles.
data.isList = (status == 'FL' or status == 'FFL') and data.mainDateTimestamp >= 20110613
and (not data.mainDate or data.mainDateTimestamp >= 20110613)
 
return data