Module:family tree/documentation functions

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

function export.etymology_language_data(frame)
	local Array = require "Module:array"
	local output = Array()
	local etymology_languages = require "Module:family tree/etymology languages"
	
	local function sort_etymology_language_codes(code1, code2)
		return etymology_languages < etymology_languages
	end
	
	for code, data in require "Module:table".sortedPairs(etymology_languages, sort_etymology_language_codes) do
		local code_list = data.codes
		if code_list then
			table.sort(code_list)
			output:insert("* " .. data .. " (<code>" .. code .. "</code>): "
				.. Array(code_list)
					:filter(function(alt_code)
							return alt_code ~= code
						end)
					:map(function(alt_code)
							return "<code>" .. alt_code .. "</code>"
						end)
					:concat(", "))
		end
	end
	
	return output:concat("\n")
end

return export