Jump to content

Module:If empty

From Simple English Wikipedia, the free encyclopedia
Revision as of 06:08, 17 November 2022 by Fehufanga (talk | changes) (Protected "Module:If empty": Highly visible template ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))

This module supports Template:If empty.

Tracking/maintenance category


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