Nothing Special   »   [go: up one dir, main page]

跳转到内容

模組:Slight-pause mark list

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

这是Module:Slight-pause mark list当前版本,由Uzume留言 | 贡献编辑于2024年7月11日 (四) 03:37 (strict)。这个网址是本页该版本的固定链接。

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

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