Module:Sourcrowd: Difference between revisions

From TestWiki
Content added Content deleted
(modify)
(modify)
Line 10: Line 10:


function p.main( frame )
function p.main( frame )
if frame.args[2] then
if type(p[frame.args[1]]) == 'function' then
return p[frame.args[1]](frame.args[2], frame.args[3])
return "HTML"
else
else
return "UTF"
return p[frame.args[1]][frame.args[2]]
end
end
end
end

Revision as of 20:14, 12 March 2017

Documentation for this module may be created at Module:Sourcrowd/doc

--[[  

This module is intended as test environment of user:Sourcrowd.

PLEASE DO NOT MODIFY!

]]

local p = {}

function p.main( frame )
	if type(p[frame.args[1]]) == 'function' then
		return p[frame.args[1]](frame.args[2], frame.args[3])
	else
		return p[frame.args[1]][frame.args[2]]
	end
end

function p.a2b( str )
	return
end

function p.b2a( str, ctype ) 
	return
end
return p