Module:Sourcrowd: Difference between revisions

From TestWiki
Content added Content deleted
(update)
(update)
Line 9: Line 9:
local p = {}
local p = {}


function p.main( frame )
function p.a2b( 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
return
end
end


function p.b2a( str, ctype )
function p.b2a( frame )
local str = frame.args[1] or ''
if ctype then
if ( frame.args[2] or false ) then
retValue = '['
retValue = '['
else
else

Revision as of 22:59, 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.a2b( frame )
	return
end

function p.b2a( frame )
	local str = frame.args[1] or ''
	if ( frame.args[2] or false ) then
		retValue = '['
	else
		retValue = mw.ustring.gsub( str, '0', 0x9e6 )
	end

	return retValue
end
return p