跳转到内容

模組:存檔至

维基百科,自由的百科全书

这是本页的一个历史版本,由Xiplus留言 | 贡献2021年8月15日 (日) 00:58 建立内容为“local p = {} function p._main(args) local targets = {} local i = 1 while i <= 10 do mw.log(i) mw.log(args[i]) if args[i] ~= nil then local page = mw.title.new( args[i] ) mw.logObject(page) end i = i + 1 end return '' end function p.main(frame) local args = {} if frame.args.parent then args = frame:getParent().args else args = frame.args end return p._main(args) end return p”的新页面)编辑。这可能和当前版本存在着巨大的差异。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)

local p = {}

function p._main(args)
	local targets = {}
	local i = 1
	while i <= 10 do
		mw.log(i)
		mw.log(args[i])
		if args[i] ~= nil then
			local page = mw.title.new( args[i] )
			mw.logObject(page)
		end
		i = i + 1
	end
	return ''
end

function p.main(frame)
	local args = {}
	if frame.args.parent then
        args = frame:getParent().args
    else
        args = frame.args
	end
    return p._main(args)
end

return p