Module:Sandbox/BrandonXLF/user space
Appearance
This module contains Lua functions used in the User:BrandonXLF user space.
local getArgs = require('Module:Arguments').getArgs
local p = {}
function p.sandboxStatus(frame)
local args = getArgs(frame)
local title = mw.title.new(args[1])
if not title.exists then
return '<span style="background-color:darkred;height:10px;width:10px;display:inline-block;"></span>'
end
if title:getContent() == (args[2] or '') then
return '<span style="background-color:green;height:10px;width:10px;display:inline-block;"></span>'
end
return '<span style="background-color:red;height:10px;width:10px;display:inline-block;"></span>'
end
return p