Module:documentation/functions/zh dial or syn

Hello, you have come here looking for the meaning of the word Module:documentation/functions/zh dial or syn. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:documentation/functions/zh dial or syn, but we will also tell you about its etymology, its characteristics and you will know how to say Module:documentation/functions/zh dial or syn in singular and plural. Everything you need to know about the word Module:documentation/functions/zh dial or syn you have here. The definition of the word Module:documentation/functions/zh dial or syn will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:documentation/functions/zh dial or syn, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


return function(title, cats)
	local type_of_data, character = title.fullText:match("^Module:zh/data/dial%-(%l+)/(.+)$")
	if character then
		local what, where
		if type_of_data == "pron" then
			what = "the pronunciation"
			where = "dialects"
		elseif type_of_data == "syn" then
			what = "synonyms"
			where = "dialects and varieties"
		end
		
		if what then
			local link = require("Module:links").full_link{
				lang = require "Module:languages".getByCode("zh"),
				term = character:gsub("-", ""),
			}
			local text = ("This module contains data on %s of %s in %s of Chinese.")
				:format(what, link, where)
			if type_of_data == "syn" then
				text = text .. "\n" .. mw.getCurrentFrame():expandTemplate{ title = 'zh-dial', args = { character } }
			end
			return text
		end
	end
end