模块:If empty

来自悠日計画 維基百科 ~ Yuuni Wiki
Santorsia留言 | 贡献2022年12月1日 (四) 07:22的版本 (导入1个版本)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

<templatestyles src="Module:Message box/ombox.css"></templatestyles>

<templatestyles src="Module:Message box/ombox.css"></templatestyles>

<templatestyles src="Module:Message box/ombox.css"></templatestyles>

This module supports Template:If empty.



local p = {}

function p.main(frame)
	local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false})

	local lastk = 0
	for k,v in ipairs(args) do
		if v ~= '' then
			return v
		end
		lastk = k
	end

end

return p