Subpages
Code analysis
Basic code analysis for Module:Sandbox/Aidan9382 | |
---|---|
Scope | Message |
Scope starting line 4 | data is defined but never referenced
|
Scope starting line 8 | data is defined but never referenced
|
Scope starting line 13 | data is defined but never referenced
|
Unknown | Return value of require("Module:No globals") was ignored
|
Test invokes
Lua error in package.lua at line 80: module 'Module:No globals' not found.
Lua error in package.lua at line 80: module 'Module:No globals' not found.
parenting Lua error in package.lua at line 80: module 'Module:No globals' not found.
Lua error in package.lua at line 80: module 'Module:No globals' not found.
Lua error in package.lua at line 80: module 'Module:No globals' not found.
Lua error in package.lua at line 80: module 'Module:No globals' not found.
require("Module:No globals")
local functions = {}
function functions.main(data)
return "<div style=text-align:right;font-size:80%>This does nothing as of right now. "..os.time().."</div>"
end
function functions.iloveregexold(data)
local r = "%[?%[?.-:([^{|]+)%]?%]?"
local args = {mw.ustring.match("[[File:Hey.jpg|thumb|left|250px]]",r)}
return table.concat(args," -- ")
end
function functions.iloveregex(data)
--This assumes [[ is present, and that therefore ]] is present
local r = "%[%[%a-:([^{|]+)(.+)%]%]"
local args = {mw.ustring.match("[[File:Hey.jpg|thumb|left|250px|All for [[Module:Excerpt/portals]]|alt=text]]",r)}
return table.concat(args," -- ")
end
function functions:namecall()
return self
end
return functions