Module:Sourcrowd: Difference between revisions
Content added Content deleted
(modify) |
(update) |
||
Line 8:
local p = {}
local arr_bn_num = { 0x9e6, 0x9e7, 0x9e8, 0x9e9, 0x9ea, 0x9eb, 0x9ec, 0x9ed, 0x9ee, 0x9ef }▼
local bn_num = { false }
local i = nil
▲
for i=0, 9 do
bn_num[1][i] = mw.ustring.char( bn_num[0][i] )
end
function p.a2b( frame )
Line 19 ⟶ 25:
retValue = '['
else
retValue = mw.ustring.gsub( str, '
end
|
Revision as of 23:18, 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 bn_num = { false }
local i = nil
bn_num[0] = { 0x9e6, 0x9e7, 0x9e8, 0x9e9, 0x9ea, 0x9eb, 0x9ec, 0x9ed, 0x9ee, 0x9ef }
for i=0, 9 do
bn_num[1][i] = mw.ustring.char( bn_num[0][i] )
end
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, '1', bn_num[1][i] )
end
return retValue
end
return p