ماڊيول:سنڌي تاريخ

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

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

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

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

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

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

return p