Module:Convert to eastern arabic numerals: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 15:
}
 
function p.convert_str(num_strargs)
if args == nil then
return 'Error! Arguments provided are null'
end
local num_str = tostring(frame.args[1])
for western, eastern in pairs(conversion_table) do
num_str = string.gsub(num_str, western, eastern)
Line 23 ⟶ 27:
 
function p.convert(frame)
ifreturn p.convert_str(frame.args == nil then )
return nil
end
local num_str = tostring(frame.args[1])
return p.convert_str(num_str)
end