Module:If empty: Difference between revisions
From Roses, Tulips, & Liberty
Content deleted Content added
m 24 revisions imported from wikipedia:Module:If_empty |
lastk is not needed |
||
Line 4: | Line 4: | ||
local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false}) |
local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false}) |
||
local lastk = 0 |
|||
for k,v in ipairs(args) do |
for k,v in ipairs(args) do |
||
if v ~= '' then |
if v ~= '' then |
||
return v |
return v |
||
end |
end |
||
lastk = k |
|||
end |
end |
||
Revision as of 18:33, 26 January 2023
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.