ماڊيول:انگريزي تاريخ

کليل ڄاڻ چيڪلي، وڪيپيڊيا مان

Documentation for this module may be created at ماڊيول:انگريزي تاريخ/doc

-- This Module converts Date Strings from Sindhi to Roman
-- From Bhojpuri Wikipedia (bh.wikipedia) 

local conversionTable = mw.loadData('Module:انگريزي تاريخ/فهرست تبديلي')
local p = {}

function p._main(s)
	for sd, en in pairs(conversionTable) do
		s = s:gsub(sd, en)
	end
	return s
end

function p.main(frame)
	local s = frame:getParent().args[1]
	return p._main(s)
end

return p