Module:If empty
Jump to navigation
Jump to search
![]() | This module implements{{If empty}} . |
Code
--
-- This module implements {{If empty}}
--
-- This is an improved version from cawiki, previously copied from enwiki version [https://ca.wikipedia.org/w/index.php?title=Module:If_empty&oldid=20680566 >> 12-jan-2019]
localp={}
functionp.main(frame)
localargs=require('Module:Arguments').getArgs(frame,{wrappers='Template:If empty',removeBlanks=false})
fork,vinipairs(args)do
ifv~=''then
returnv
end
end
end
returnp