Difference between revisions of "Module:LatestAfD"

From blackwiki
Jump to navigation Jump to search
blackwiki>Swpb
blackwiki>Swpb
Line 6: Line 6:
 
link = "Wikipedia:Articles for deletion/" .. page .. ""
 
link = "Wikipedia:Articles for deletion/" .. page .. ""
  
-- titlevar = mw.title.new("Banana")
+
titlevar = mw.title.new("Banana")
 
 
link = "Banana"
 
 
output = link.exists
 
output = link.exists
  

Revision as of 17:31, 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]

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

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

	return output
end

return p