Module:Selected recent additions: Difference between revisions

no edit summary
No edit summary
No edit summary
Tag: Reverted
Line 62: Line 62:


-- Get current events for a "YYYY Month D" date. Returns a table of list items.
-- Get current events for a "YYYY Month D" date. Returns a table of list items.
function getRecentAdditions(subpage, keepPatterns, skipPatterns, showWikitext)
function getRecentAdditions(keepPatterns, skipPatterns, showWikitext)
local title = mw.title.new('Bharatpedia:Recent additions' .. subpage)
local title = mw.title.new('Bharatpedia:Recent additions')
local raw = title:getContent()
local raw = title:getContent()
local itemPattern = '%*%s?%.%.%.[%S ]*'
local itemPattern = '%*%s?%.%.%.[%S ]*'