Module:User:kc kennylau/redlinkcat

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


local export = {}

local posname = {
	='nouns', ='verbs', ='adjectives'
}

local inflname = {
	='declension', ='conjugation', ='declension'
}

local function if_not_empty(val)
	return val ~= "" and val
end

function export.show(frame)
	local args = frame:getParent().args
	local langcode = if_not_empty(args)
	local pos = if_not_empty(args)
	if langcode then
		if pos then
			return maincat(langcode, pos)
		else
			return langcat()
		end
	else
		if pos then
			return poscat()
		else
			return main()
		end
	end
end

function main()
	return "]"
end

function poscat()
	return "]"
end

function langcat()
	return "]"
end

function maincat(langcode, pos)
	mw.log(langcode, require("Module:languages").getByCode(langcode), ('%q'):format(pos))
	local canonicalname = require("Module:languages").getByCode(langcode):getCanonicalName()
	local text = "This category contains " .. canonicalname .. " " .. posname
	text = text .. " with red links in their " .. inflname .. " tables."
	text = text .. " This category '''may''' sometimes be empty."
	local poscat = posname:gsub("^.", string.upper) .. " with red links in their " .. inflname .. " tables by language"
	local langcat = canonicalname .. " terms with red links in their inflection tables"
	text = text .. "]"
	text = text .. "]"
	text = text .. "__HIDDENCAT__"
	return text
end

return export