Pergi ke kandungan

Modul:category tree/topic cat/data/Names

Daripada Wikikamus
local labels = {}
local handlers = {}

labels["nama"] = {
	type = "berkenaan",
	description = "{{{langname}}} names for a variety of things.",
	additional = "Given names and surnames can be found in [[:Category:Names by language]].",
	parents = {"semua topik"},
}

labels["nama huruf"] = {
	type = "nama",
	description = "{{{langname}}} terms that are the names of letters.",
	additional = "Ideally entries should be in a subcategory for the names of letters in a particular script.",
	parents = {"nama", "huruf, simbol, dan tanda baca"},
}

-- Handler for "SCRIPT letter names".
table.insert(handlers, function(label)
	local script = label:match("^nama huruf (.*)$")
	if script then
		local sc = require("Module:scripts").getByCanonicalName(script)
		if sc then
			local script_page
			local appendix = ("Lampiran:tulisan %s"):format(script)
			local appendix_title = mw.title.new(appendix)
			if appendix_title and appendix_title.exists then
				script_page = appendix
			else
				script_page = "w:" .. sc:getWikipediaArticle()
			end
			local link = ("[[%s|tulisan %s]]"):format(script_page, script)
			return {
				type = "nama",
				description = ("{{{langname}}} terms that serve as names for letters and symbols directly based on letters, " ..
					"such as [[ligature]]s and letters with [[diacritic]]s, of the %s."):format(link),
				parents = {"nama huruf"},
			}
		end
	end
end)


labels["couple nicknames"] = {
	type = "nama",
	description = "{{{langname}}} informal names for pairs of people, especially [[celebrity]] [[couple]]s.",
	additional = "For fictional relationships, see [[:Category:Ships (fandom)]].",
	parents = {"nicknames", "people"},
}

labels["country nicknames"] = {
	type = "nama",
	description = "{{{langname}}} informal names for [[country|countries]].",
	parents = {"nicknames", "countries"},
}

labels["foreign personal names"] = {
	type = "nama",
	description = "Transliterations, respellings or other renderings of personal names into {{{langname}}}.",
	umbrella = {
		description = "Transliterations, respellings or other renderings of personal names.",
	},
	parents = {"nama"},
}

labels["named prayers"] = {
	type = "nama",
	description = "=[[specific]] [[prayer]]s",
	parents = {"nama", "prayer"},
}

labels["named roads"] = {
	type = "nama",
	description = "=[[individually]]-[[named]] [[roads]]",
	parents = {"names", "roads"},
}

labels["nicknames"] = {
	type = "nama",
	description = "{{{langname}}} terms that are informal names or diminutives of specific entities (people, places, etc.)",
	parents = {"names"},
}

labels["nicknames of individuals"] = {
	type = "nama",
	description = "{{{langname}}} terms that are informal names for specific individuals (e.g. [[J-Lo]] for singer {{w|Jennifer Lopez}}).",
	parents = {"individuals", "nicknames"},
}

labels["derogatory names for countries"] = {
	type = "nama",
	description = "{{{langname}}} derogatory names for [[country|countries]].",
	parents = {"country nicknames", "derogatory names for places"},
}

labels["derogatory names for places"] = {
	type = "nama",
	description = "{{{langname}}} derogatory names for places.",
	parents = {"nicknames"},
}

labels["sports nicknames"] = {
	type = "nama",
	description = "{{{langname}}} informal names for people or teams involved in sports.",
	parents = {"nicknames", "sports"},
}

labels["nama taksonomi"] = {
	type = "nama",
	description = "default",
	parents = {"nama", "taksonomi"},
}

return {LABELS = labels, HANDLERS = handlers}