Module:Sourcrowd: Difference between revisions

From TestWiki
Content added Content deleted
(update)
(modify)
Line 22: Line 22:


function p.b2a( str, ctype )
function p.b2a( str, ctype )
local prefix
if ctype then
if ctype then
prefix = '&#x'
b2a = '['
else
else
prefix = '%%%\u'
b2a = '\u05B'
end
end

return b2a
prefix = prefix .. '5B;'
return prefix
end
end
return p
return p

Revision as of 20:57, 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] or false]
	end
end

function p.a2b( str )
	return
end

function p.b2a( str, ctype )
	if ctype then
		b2a = '['
	else
		b2a = '\u05B'
	end

	return b2a
end
return p