跳转到内容
打开/关闭菜单
  • 389 文件
  • 1 用户
  • 6121 编辑
Gal中文百科
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

Module:Slight-pause mark list

来自Gal中文百科
更多语言

此模块的文档可以在Module:Slight-pause mark list/doc创建

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" data-temp="spml">' .. table.concat(_args, '</span>、<wbr /><span class="nowrap">') .. '</span>'
end

return p