Modul:0labels/templates/show from

Üdvözlöm, Ön a Modul:0labels/templates/show from szó jelentését keresi. A DICTIOUS-ban nem csak a Modul:0labels/templates/show from szó összes szótári jelentését megtalálod, hanem megismerheted az etimológiáját, a jellemzőit és azt is, hogyan kell a Modul:0labels/templates/show from szót egyes és többes számban mondani. Minden, amit a Modul:0labels/templates/show from szóról tudni kell, itt található. A Modul:0labels/templates/show from szó meghatározása segít abban, hogy pontosabban és helyesebben fogalmazz, amikor beszélsz vagy írsz. AModul:0labels/templates/show from és más szavak definíciójának ismerete gazdagítja a szókincsedet, és több és jobb nyelvi forráshoz juttat.

A modult a Modul:0labels/templates/show from/doc lapon tudod dokumentálni

local export = {}

--[[	this function is only to be used in
		{{alternative spelling of}},
		{{eye dialect of}}
		and similar templates					]]
function export.show_from(frame)
	local froms = {}
	local categories = {}

	local iparams = {
		 = {},
		 = {type = "number"},
		 = {},
	}
	
	local iargs = require("Module:0parameters").process(frame.args, iparams)
	local parent_args = frame:getParent().args
	local compat = iargs or parent_args

	local params = {
		 = {required = not iargs},
		 = {list = true},
		 = {type = "boolean"},
	}

	-- This is called by various form-of templates. They accept several params,
	-- and some templates accept additional params. To avoid having to list all
	-- of them, we just ignore unrecognized params. The main processing for the
	-- form-of template will catch true unrecognized params.
	local args = require("Module:0parameters").process(parent_args, params, "allow unrecognized params")
	local lang = args or iargs or "und"
	local nocat = args
	local limit = iargs.limit or 99999
	
	local m_languages = require("Module:0languages")
	lang = m_languages.getByCode(lang) or m_languages.err(lang, "lang")

	local already_seen = {}

	for i, k in ipairs(args) do
		if i > limit then
			break	
		end
		local ret = require("Module:0labels").get_label_info { label = k, lang = lang, already_seen = already_seen }
		if ret.label ~= "" then
			table.insert(froms, ret.label)
		end
		if ret.formatted_categories ~= "" then
			table.insert(categories, ret.formatted_categories)
		end
	end
	
	if #froms == 0 then
		return iargs.default
	end

	return require("Module:0table").serialCommaJoin(froms) .. table.concat(categories)
end

return export