Your IP address will be publicly visible if you make any edits.
Module:If empty
From Poets.Wiki
More actions
Revision as of 18:41, 3 March 2025 by Matt(talk | contribs)(Protected "Module:If empty": Initial wiki setup ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
‹ The template below (Module rating) is being considered for merging. See templates for discussion to help reach a consensus. ›
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing.
This module supports Template:If empty. See here for test cases.
local p = {}
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
return p