Module:mt:Dialects

Wiktionary වෙතින්

This module provides labels to the templates {{alter}}/{{alt}}, {{descendant}}/{{desc}} as well as the templates derived from Module:nyms ({{synonyms}}/{{syn}} etc.).

How-to[සංස්කරණය]

Additions take this form. Remove < > and the stuff between them and replace with the label you would like to use, the form you would like it to display as, and the Wikipedia entry (if any) that the label should link to. If you do not want to link to a Wikipedia article, simply remove the link line altogether.

labels['<label>'] = {
	display = '<link text>',
	link = '<Wikipedia article>',
}

Blank form:

labels[''] = {
	display = '',
	link = '',

For alternative forms of the labels, use the following code:

aliases['<alternative form>'] = '<label with data table>'

aliases[''] = ''

-- the data here is also transcluded by [[Module:labels/data/lang/mt]], hence the categories.

local labels = {
	
	-- Tags

	["dated, after a consonant"] = {
		alts = {"euphonic-opt-verb"}
	},
	["optionally after a consonant, but almost always after the article"] = {
		alts = {"euphonic-opt"}
	},
	["after a consonant, mostly also after a pause"] = {
		alts = {"euphonic"}
	},

	-- Dialects

	["Gozo"] = {
		alts = {"Gozitan", "Għawdex", "Għawdxi"},
		link = "Gozo",
		plain_categories = {"Gozitan Maltese"}
	},
	["Sannat"] = {
		link = "Sannat",
		plain_categories = {"Sannat Maltese"}
	},
	["Kerċem"] = {
		alts = {"Kercem"},
		link = "Kerċem",
		plain_categories = {"Kerċem Maltese"}
	},
	["Xagħra"] = {
		alts = {"Xaghra"},
		link = "Xagħra",
		plain_categories = {"Xagħra Maltese"}
	},
	["Għajnsielem"] = {
		alts = {"Ghajnsielem"},
		link = "Għajnsielem",
		plain_categories = {"Għajnsielem Maltese"}
	},
	["Żebbuġ"] = {
		alts = {"Zebbug"},
		link = "Żebbuġ",
		plain_categories = {"Żebbuġ Maltese"}
	},
	["Nadur"] = {
		link = "Nadur",
		plain_categories = {"Nadur Maltese"}
	},
	["Siġġiewi"] = {
		alts = {"Siggiewi"},
		link = "Siġġiewi",
		plain_categories = {"Siġġiewi Maltese"}
	},
	["Mosta"] = {
		link = "Mosta",
		plain_categories = {"Mosta Maltese"}
	},
	["Rabat"] = {
		link = "Rabat, Malta",
		plain_categories = {"Rabat Maltese"}
	},
	["Mellieħa"] = {
		alts = {"Mellieha"},
		link = "Mellieħa",
		plain_categories = {"Mellieħa Maltese"}
	},
	["Ħad-Dingli"] = {
		alts = {"Dingli"},
		link = "Dingli",
		plain_categories = {"Dingli Maltese"}
	},
	["Munxar"] = {
		link = "Munxar",
		plain_categories = {"Munxar Maltese"}
	},
	["Qala"] = {
		link = "Qala, Malta",
		plain_categories = {"Qala Maltese"}
	},
	["Australia"] = {
		alts = {"Australian"},
		link = "Maltralian",
		plain_categories = {"Australian Maltese"}
	}
}

local aliases = {}

for i_label, v_label in pairs(labels) do
	v_label.display = i_label
	if (v_label.alts) then
		for _, v_alias in ipairs(v_label.alts) do
			aliases[v_alias] = i_label
		end
		v_label.alts = nil
	end
end

return {
	labels = labels,
	aliases = aliases
}
"https://si.wiktionary.org/w/index.php?title=Module:mt:Dialects&oldid=54635" වෙතින් සම්ප්‍රවේශනය කෙරිණි