Permanently protected module

Module:If empty: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
(Created page with "local p = {} function p.main(frame) local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false}) for k,v in ipairs(args) do if v ~= '' then return v end end end return p")
 
m (Protected "Module:If empty" ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
 
(No difference)

Latest revision as of 20:39, 24 July 2023


local p = {}

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

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

end

return p