بەڵگەدارکردنی مۆدیوول[دروست بکە]
local numConv = require("module:Numeral converter2").convert
local p ={}
local lang = mw.getContentLanguage();
local DateModule = require('Module:Date')._Date

function format_date(date_string)
	function dateFormatter(text)
		return DateModule(text):text('%-dی %Bی %-Y')
	end

	local stat, res = pcall(dateFormatter, date_string)
	
	if stat then
      return res
    else
      return date_string
    end
end


function p.test(data)
	local format = data.args[1];
	local retype = "";
	format = numConv('en', format)
	local splitted = {}
	local temp = format
	for k in string.gmatch(format, "%d%d?%S+")do
		temp = string.gsub(temp, k,"")
	end
	for k in string.gmatch(format, "%d%d?%S+")do
		splitted[k] = string.gsub(k, "ی","")
	end
	for key,value in pairs(splitted) do
			retype = retype .. value
	end
	
	local temp2 = string.sub(temp,1,-3)
	format2 = numConv('ckb', format)
	
	format3 = format_date(format)
	
	testing = "404!"
	if string.match(data.args[1],"^[١-٩]+ی شوبات|نیسان|ئایار|(کانوونی یەکەم) [١-٩]+") then
		testing = "TRUE"
	end
	
			ckbTime = mw.getCurrentFrame():callParserFunction( '#time:dی Fی Y', '' .. data.args[1] .. '' )
	
	return 'Test:' .. data.args[1] .. " >> " .. format .. ' => ' .. format2 ..  ' *** ' .. format3 .. '(' .. testing .. ')' .. ckbTime
end
return p