Module:If empty: Difference between revisions
From Roses, Tulips, & Liberty
Content deleted Content added
greatly simplify |
|||
Line 1: | Line 1: | ||
⚫ | |||
-- this is intended to replace {{If empty}} |
|||
⚫ | |||
function p. |
function p.main(frame) |
||
for k,v in ipairs(require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false})) do |
|||
if v ~= '' then |
|||
⚫ | |||
args[table.getn(args)] = '' |
|||
end |
|||
while args[i] == nil or string.len(args[i]) == 0 do |
|||
i = i + 1 |
|||
end |
end |
||
⚫ | |||
end |
end |
||
return p |
return p |
Revision as of 19:08, 23 December 2014
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 depends on the following other modules: |
This module supports Template:If empty.