உள்ளடக்கத்துக்குச் செல்

Module:Convert to eastern arabic numerals

கட்டற்ற கலைக்களஞ்சியமான விக்கிப்பீடியாவில் இருந்து.
Pagers (பேச்சு | பங்களிப்புகள்) பயனரால் செய்யப்பட்ட 10:01, 21 பெப்ரவரி 2023 அன்றிருந்தவாரான திருத்தம் ("local p = {} local conversion_table = { ['0'] = '٠', ['1'] = '١', ['2'] = '٢', ['3'] = '٣', ['4'] = '٤', ['5'] = '٥', ['6'] = '٦', ['7'] = '٧', ['8'] = '٨', ['9'] = '٩', ['.'] = ',' } function p._convert(args) if args == nil then return 'Error! Arguments provided are null' end if args[1] == nil then return '' end local num_str = tos..."-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது)
(வேறுபாடு) ← பழைய திருத்தம் | புதிய திருத்தத்தைப் பார்க்கவும். (வேறுபாடு) | புதிய திருத்தம் → (வேறுபாடு)

Documentation for this module may be created at Module:Convert to eastern arabic numerals/doc

local p = {}

local conversion_table = {
	['0'] = '٠',
	['1'] = '١',
	['2'] = '٢',
	['3'] = '٣',
	['4'] = '٤',
	['5'] = '٥',
	['6'] = '٦',
	['7'] = '٧',
	['8'] = '٨',
	['9'] = '٩',
	['.'] = ','
}

function p._convert(args)
	if args == nil then
		return 'Error! Arguments provided are null'
	end
	if args[1] == nil then
		return ''
	end
	local num_str = tostring(args[1])
	local new_str, _ = string.gsub(num_str, '[0-9.]', conversion_table)
	return new_str
end

function p.convert(frame)
	return p._convert(frame.args)
end

return p
"https://ta.wikipedia.org/w/index.php?title=Module:Convert_to_eastern_arabic_numerals&oldid=3662888" இலிருந்து மீள்விக்கப்பட்டது