Module:User:Anomie/Sandbox

local p = {}

local t = os.time()

function p.bug66798( frame )

return frame:getParent():getTitle()

end

function p.bug71971( frame )

local a = mw.clone( frame.args )

return frame:expandTemplate{ title='User:Anomie/Sandbox2', args=a }

end

function p.bug71971_2( frame )

local m = ''

for k, v in pairs( frame:getParent().args ) do

m = m .. tostring(k) .. ' = ' .. tostring(v) .. "\n"

end

return '

' .. m .. '
'

end

local function error3( txt )

error( txt )

end

local function error2( txt )

error3( txt )

end

function p.error( frame )

error2( frame.args[1] );

end

function p.log( frame )

mw.log( frame.args[1] );

end

local cf = mw.getCurrentFrame();

function p.testJunk( frame )

return '

\n' .. mw.dumpObject( mw.getCurrentFrame() ) .. '\n
\n' ..

'

\n' .. mw.dumpObject( cf ) .. '\n
\n';

end

return p