Module:If empty: Difference between revisions
From Roses, Tulips, & Liberty
Content deleted Content added
lua doesn't cast nil into blank strings apparently |
m test: do I even need these lines? |
||
Line 1: | Line 1: | ||
-- this is intended to replace {{If empty}} |
-- this is intended to replace {{If empty}} |
||
local p = {}; |
|||
function p.run(frame) |
function p.run(frame) |
||
local args = require('Module:Arguments').getArgs(frame) |
local args = require('Module:Arguments').getArgs(frame) |
||
Line 10: | Line 9: | ||
return args[i] |
return args[i] |
||
end |
end |
||
return p |
Revision as of 19:01, 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.