Module:Sourcrowd: Difference between revisions
Content added Content deleted
(modify) |
(modify) |
||
Line 19: | Line 19: | ||
else |
else |
||
retValue = mw.ustring.gsub( str, '0', mw.ustring.char( 0x9e6 ) ) |
retValue = mw.ustring.gsub( str, '0', mw.ustring.char( 0x9e6 ) ) |
||
retValue = mw.ustring.gsub( retValue, '1', 0x20 ) |
|||
end |
end |
||
Revision as of 23:03, 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', mw.ustring.char( 0x9e6 ) )
retValue = mw.ustring.gsub( retValue, '1', 0x20 )
end
return retValue
end
return p