2023年政策修订增补工作正在进行中,欢迎参与!
Module:Sandbox/サンムル
跳转到导航
跳转到搜索
local module = {};
function module.main(frame)
local s = mw.dumpObject(mw.getContentLanguage())
return s
end
function module.title(frame)
local title = mw.title.new(frame:getTitle())
local obj = {}
for k, v in pairs(title) do
if type(v) == "function" then
--obj[k] = v(title, frame.args[1] or "", frame.args[2] or "", frame.args[3] or "", frame.args[4] or "", frame.args[5] or "")
else
obj[k] = v
end
end
return mw.dumpObject(obj)
end
function module.sysparams(frame)
return mw.ustring.len(frame.args[1])
end
function module.cr(frame)
return frame:preprocess("#REDIRECT [["..frame.args[1].."]]")
end
return module;