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