Module:Sourcrowd: Difference between revisions

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


local p = {}
local p = {}
local arr_bn_num = { 0x9e6, 0x9e7, 0x9e8, 0x9e9, 0x9ea, 0x9eb, 0x9ec, 0x9ed, 0x9ee, 0x9ef }


function p.a2b( frame )
function p.a2b( frame )

Revision as of 23:10, 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 = {}
local arr_bn_num = { 0x9e6, 0x9e7, 0x9e8, 0x9e9, 0x9ea, 0x9eb, 0x9ec, 0x9ed, 0x9ee, 0x9ef }

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', mw.ustring.char( 0x9e6 ) )
		retValue = mw.ustring.gsub( retValue, '1', 0x20 )
	end

	return retValue
end
return p