"मॉड्यूल:If empty": अवतरणों में अंतर
दिखावट
छो test worked.. trying to simplify |
simpliy; just noticed the "preview page with this module" box... will no longer be doing weird tests XD |
||
पंक्ति २: | पंक्ति २: | ||
function p.main(frame) | function p.main(frame) | ||
for | for _,v in ipairs(frame.args) do | ||
if | if v ~= '' then | ||
return | return v | ||
end | end | ||
end | end |
०२:५८, २४ दिसम्बर २०१४ का अवतरण
"इस मॉड्यूल हेतु प्रलेख मॉड्यूल:If empty/doc पर बनाया जा सकता है"
local p = {}
function p.main(frame)
for _,v in ipairs(frame.args) do
if v ~= '' then
return v
end
end
for _,v in ipairs(require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false})) do
if v ~= '' then
return v
end
end
end
return p