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
|
Scope starting line 31 | t is defined but never referenced
|
Test invokes
This does nothing as of right now. 1756334508
Attempted to access unknown function 'notrealfunction'
parenting frame=Module:Sandbox/Aidan9382 parent=Module:Sandbox/Aidan9382/doc
Attempted to access unknown function 'getargs'
Attempted to access unknown function 'testGP'
Attempted to access unknown function 'magicWordTests'
require("strict")
local p = {}
function p.main(data)
return "<div style=text-align:right;font-size:80%>This does nothing as of right now. "..os.time().."</div>"
end
function p.iloveregexold(data)
local r = "%[?%[?.-:([^{|]+)%]?%]?"
local args = {mw.ustring.match("[[File:Hey.jpg|thumb|left|250px]]",r)}
return table.concat(args," -- ")
end
function p.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 p.parentingLogic(frame)
local parent = frame:getParent()
assert(parent,"invocation has no parent")
return "frame="..frame:getTitle().." parent="..parent:getTitle()
end
function p:namecall()
return self
end
return setmetatable(p,{
__index=function(t,k)
mw.log("Attempted to access unknown function '"..tostring(k).."'")
return function(frame)
local s = "<span class=\"error\">Attempted to access unknown function '"..tostring(k).."'</span>"
return frame and frame:preprocess(s) or s
end
end
})