Content deleted Content added
add comments for the helper functions |
redo makeTitle as titleExists, as checking title.exists is now the expensive part |
||
Line 64:
end
-- Returns true if the given page is an existing title, and false or nil
-- otherwise
local function
local success, title = pcall(mw.title.new, page)
end
Line 1,667 ⟶ 1,666:
return nil
end
local raPage = 'Wikipedia:Recent additions/' ..
if not titleExists(raPage) then
▲ raPage = 'Wikipedia:Recent additions'
end
local blurb = string.format(
|