Module:Sandbox/Aidan9382: Difference between revisions

Content deleted Content added
Replace Module:No globals with require( "strict" )
callin it p
Line 1:
require("strict")
local functionsp = {}
 
function functionsp.main(data)
return "<div style=text-align:right;font-size:80%>This does nothing as of right now. "..os.time().."</div>"
end
 
function functionsp.iloveregexold(data)
local r = "%[?%[?.-:([^{|]+)%]?%]?"
local args = {mw.ustring.match("[[File:Hey.jpg|thumb|left|250px]]",r)}
return table.concat(args," -- ")
end
function functionsp.iloveregex(data)
--This assumes [[ is present, and that therefore ]] is present
local r = "%[%[%a-:([^{|]+)(.+)%]%]"
Line 18:
end
 
function functionsp:namecall()
return self
end
 
return functionsp