p=
local function err(message) return mw.ustring.format("
Error: %s", message)endlocal function isTrue(x) if type(x)
'number' then if x
'string' then x = mw.ustring.lower(x) if x
'true' or x
'yes' or x
0 then return false else return true end end end return falseend
p.REVISIONUSER = function(frame) local pageName = frame.args[1] or nil local ignore_errors = frame.args.ignore_errors or false -- args[1] is blank if pageName
"" then -- with no colon return frame:preprocess("") end -- args[1] is not blank pageTitle = mw.title.new(pageName) if pageTitle.exists then -- with colon return frame:preprocess("") end -- you may want try relative path if mw.ustring.sub(pageName,1,1)
return p