Difference between revisions of "Module:LatestAfD"

From blackwiki
Jump to navigation Jump to search
blackwiki>Swpb
blackwiki>Swpb
Line 7: Line 7:
  
 
page_title = mw.title.new(page_string)
 
page_title = mw.title.new(page_string)
output = page_title.exists
 
  
return output
+
if page_title.exists then
 +
return "yes"
 +
end
 +
 
 +
-- output = page_title.exists
 +
 
 +
-- return output
 
end
 
end
  
 
return p
 
return p

Revision as of 17:37, 30 May 2017

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]

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

	page_title = mw.title.new(page_string)

	if page_title.exists then
		return "yes"
	end

--	output = page_title.exists

--	return output
end

return p