模块:沙盒/Cwek/test3
local p={}
local getArgs
function p.main(frame)
if not getArgs then
getArgs = require('Module:Arguments').getArgs
end
local args = getArgs(frame)
local arg1 = args[1] or ""
local existFunc = function(page)
return frame:callParserFunction('#ifexist',{arg1,'1','0'})
end
return p.func2(page,existFunc)
end
function p.func2(page,existFunc)
return existFunc(page)=='1'
end
return p