Module:IfEmpty: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Manual revert |
No edit summary |
||
Line 5: | Line 5: | ||
local args = getArgs(frame, { wrappers = 'Template:IfEmpty' }) | local args = getArgs(frame, { wrappers = 'Template:IfEmpty' }) | ||
for i, v in ipairs(args) do | for i, v in ipairs(args) do | ||
if v | if v then | ||
return v | return v | ||
end | end |
Revision as of 23:54, 28 November 2023
This module implements the functionality of Template:IfEmpty. It returns the first template argument that's not empty or whitespace-only.