跳转到内容

模組:Slight-pause mark list

被永久保护的模块
维基百科,自由的百科全书

这是本页的一个历史版本,由Xiplus-abot留言 | 贡献2020年6月23日 (二) 00:32 (已保护“Module:Slight-pause mark list”:高風險模板:1035引用<!-- 機器人3 -->([编辑=仅允许自动确认用户](无限期)[移动=仅允许自动确认用户](无限期)))编辑。这可能和当前版本存在着巨大的差异。

require('Module:No globals')

local getArgs = require('Module:Arguments').getArgs
local p = {}

function p.main(frame)
	local args = getArgs(frame)
	return p._main(args)
end

function p._main(args)
	-- Main module code goes here.
	local _args, countNil = {}, 0

	for i = 1, math.huge do
		if args[i] then
			table.insert(_args, args[i])
			countNil = 0
		else
			countNil = countNil + 1
			if countNil == 4 then break end
		end
	end

	if _args == {} then
		return 
	end
	
	return '<span class="nowrap">' .. table.concat(_args, '</span>、<wbr /><span class="nowrap">') .. '</span>'
end

return p