Jump to content

Module:EnFullM

विकिपीडिया से
मॉड्यूल बिबरनलेख[बनाईं]
-- This Module converts Date Strings with short month name from Devnagari to Roman
-- Created for Bhojpuri Wikipedia (bh.wikipedia) by adopting codes from [[en:user:Mr. Stradivarius]] by Satyam Mishra [[:bh:user:सत्यम् मिश्र]]

local conversionTable = mw.loadData('Module:EnFullM/data')
local p = {}

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

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

return p