Module:If empty: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (Protected Module:If empty: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))) |
m (1 revision imported from wikipedia:Module:If_empty) |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 3:
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false})
for k,v in ipairs(args) do
if v ~= '' then
return v
end
end
end
|
Latest revision as of 13:07, 3 February 2023
Documentation for this module may be created at Module:If empty/doc