Module:LatestAfD

From blackwiki
Revision as of 17:32, 30 May 2017 by blackwiki>Swpb
Jump to navigation Jump to search

Implements {{LatestAfD}}, which links to the most recent AfD discussion for the specified article.



local p = {}

function p.latestafd(frame)
	local page = frame.args[1]

	link = "Wikipedia:Articles for deletion/" .. page .. ""

	titlevar = mw.title.new(link)
	output = titlevar.exists

	return output
end

return p