Difference between revisions of "Module:LatestAfD"
Jump to navigation
Jump to search
blackwiki>Swpb |
blackwiki>Swpb |
||
| Line 6: | Line 6: | ||
page_string = "Wikipedia:Articles for deletion/" .. page .. "" | page_string = "Wikipedia:Articles for deletion/" .. page .. "" | ||
| − | page_title = mw.title.new(page_string) | + | for loopvar = 1,2 do |
| − | + | page_title = mw.title.new(page_string) | |
| − | + | if page_title.exists then | |
| − | + | return "[[" .. page_string .. "]]" | |
| + | end | ||
end | end | ||
Revision as of 17:43, 30 May 2017
local p = {}
function p.latestafd(frame)
local page = frame.args[1]
page_string = "Wikipedia:Articles for deletion/" .. page .. ""
for loopvar = 1,2 do
page_title = mw.title.new(page_string)
if page_title.exists then
return "[[" .. page_string .. "]]"
end
end
end
return p