Module:IfEmpty: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
local getArgs = require('Module:Arguments').getArgs | |||
local p = {} | local p = {} | ||
function p.main(frame) | function p.main(frame) | ||
local args = | local args = getArgs(frame, { | ||
wrappers = 'Template:IfEmpty' | wrappers = 'Template:IfEmpty' | ||
}) | }) |
Revision as of 20:38, 23 July 2023
This module implements the functionality of Template:IfEmpty. It returns the first template argument that's not empty or whitespace-only.