local p =
local disambiguationTemplates =
function p.main(frame) local getArgs = require("Module:Arguments").getArgs local args = getArgs(frame) local page = mw.title.new(args[1], 0) if not page then return "badtitle" end
if not page.exists then return "empty" end
if page.isRedirect then return "redirect" end
local content = page:getContent if content then content = string.gsub(content, "noinclude", "") for _, name in ipairs(disambiguationTemplates) do if content:match("") and not content:match("") then -- to disable false positives in parameter names return "dab" end end end
return "article"end
return p