Module:User:Ungoliant MMDCCLXIV

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


local export = {}

local m_languages = require("Module:languages")
local m_links = require("Module:links")
local m_qual = require("Module:qualifier")

function export.nyms(frame)
	local params = {
		 = {required = true, default = "und"},
		 = {list = true, allow_holes = true, required = false},
		
		 = {list = true, allow_holes = true},
		 = {list = true, allow_holes = true},
		 = {list = true, allow_holes = true}
	}
	
	local args = require("Module:parameters").process(frame:getParent().args, params)
	
	local nym_type = frame.args
	local lang = m_languages.getByCode(args) or m_languages.err(args, 1)
	
	local maxindex = math.max(args.maxindex, args.maxindex, args.maxindex)
	
	if maxindex < 1 then
		
		return "<span class=\"nyms " .. nym_type .. "\"><span class=\"defdate\">" .. 
			mw.getContentLanguage():ucfirst(nym_type) ..
			":</span> " .. "<small></small>" ..
			"]" ..
			"</span>"
		
	else
	
		for i = 1, maxindex do
			args = m_links.full_link{ lang = lang, term = args, alt = args, tr = args }
			if args then
				args = args .. " " .. m_qual.format_qualifier({args})
			end
		end
		
		return "<span class=\"nyms " .. nym_type .. "\"><span class=\"defdate\">" .. 
			mw.getContentLanguage():ucfirst(nym_type) .. (maxindex > 1 and "s" or "") ..
			":</span> " .. table.concat(args, ", ") .. "</span>"
		
	end
end


return export