मजकूराशीं उडकी मार

एकक:number-utilities

Wiktionary कडल्यान

Documentation for this module may be created at एकक:number-utilities/doc

local export = {}

function export.get_number(text)
	if text == '' or text == nil then return nil end
	
	if type(text) == 'string' then
		text = mw.ustring.gsub(text, ",", "")
	end
	
	local j = tonumber(text)
	if j ~= nil then
		return j
	else
		return nil
	end
end

function export.is_number(frame)
	return export.get_number(frame:getParent().args[1])
end

return export
"https://gom.wiktionary.org/w/index.php?title=एकक:number-utilities&oldid=17948" चे कडल्यान परतून मेळयलें