Module:ExistNotRedirect
Appearance
local p = {}
function p.main(args)
local myArgs = mw.getCurrentFrame():getParent().args
local myPageName = myArgs[1]
if (myPageName == nil) or (myPageName == "") then
return ""
end
local mypageTitle = mw.title.makeTitle("", myPageName)
if mypageTitle.exists then
if mypageTitle.isRedirect then
return ""
else
return myPageName
end
end
return ""
end
return p