Module:if empty

Hello, you have come here looking for the meaning of the word Module:if empty. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:if empty, but we will also tell you about its etymology, its characteristics and you will know how to say Module:if empty in singular and plural. Everything you need to know about the word Module:if empty you have here. The definition of the word Module:if empty will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:if empty, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This module implements {{if empty}}.


-- Prevent substitution.
if mw.isSubsting() then
	return require("Module:unsubst")
end

local export = {}

-- Do all the work via ], as it returns a list of parameters
-- with any gaps removed, treating blank parameters as gaps, so simply return
-- the first value, falling back to the empty string. Blank parameters are
-- (obviously) permitted, but missing ones are not (i.e. using named parameters
-- to specify non-contiguous numeric parameters like |1000=).
function export.main(frame)
	return require("Module:parameters").process(frame:getParent().args, {
		 = {list = true, disallow_missing = true}
	}) or ""
end

return export