模块:沙盒Lua:修订间差异

来自Postal Wiki
Lua测试模块
 
加echo测试
 
第10行: 第10行:
end
end
return out
return out
end
function p.echo(frame)
return "{{1+1}}和{{邮政复函}}和[[分类:测试分类X]]"
end
end
return p
return p

2026年10月9日 (五) 09:33的最新版本

此模块的文档可以在模块:沙盒Lua/doc创建

local p = {}
function p.main(frame)
	local args = frame.args
	local d = args.d or ""
	local out = "DATE=" .. d
	if args.x and args.x ~= "" then
		out = out .. "\nHAS-X"
	else
		out = out .. "\nNO-X"
	end
	return out
end
function p.echo(frame)
	return "{{1+1}}和{{邮政复函}}和[[分类:测试分类X]]"
end
return p