Module:User:Wpi/zh-pron

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


local export = {}
local m_data = require("Module:User:Wpi/zh-pron/data")
local m_utils = require("Module:User:Wpi/zh-pron/utilities")

function export.make (frame)
	local parent_args = frame:getParent().args
	
	local params = {
		pagename = {},
		namespace = {},
		dial = {},
		mc = {},
		oc = {},
		cat = {},
		only_cat = {type = "boolean"},
		poj_form_zh_see = {type = "boolean"},
	}
	
	for _, lect_list in pairs(m_data.lects) do
		for _, lect in pairs(lect_list) do
			params = {}
			params = {list = true, deprecated = true}
			params = {deprecated = true}
		end
	end
	
	local args = require("Module:parameters").process(parent_args, params, nil, "zh-pron", "make")
	local result = {}
	
	for _, group in pairs(m_data.lect_order) do
		local count = 0
		
		for _, lect in pairs(m_data.lects) do
			if args ~= nil then
				count = count + 1
				mw.log(args)
			end
		end
		
		if count >= 2 then 
			table.insert(result, "* " .. group .. ":\n")
		end
		
		for _, lect in pairs(m_data.lects) do
			if args ~= nil then
				if count == 1 then
					table.insert(result, "* " .. group .. " (" .. lect .. ")\n")
				else
					table.insert(result, "** " .. lect .. "\n")
				end
				-- local output = m_utils.process_output(require("Module:User:Wpi/zh-pron/"..lect).make(m_utils.preprocess(args)))
			end
		end
	end
	
	return table.concat(result, "")
end

return export