Module:ms: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[''] = ''

local labels = {}
local aliases = {}

local function alias(a, b) for _, v in ipairs(b) do aliases[v] = a end end -- allows aliases to be entered as a list

labels["1924-1972"] = {
	display = "1924-1972",
	link = "Za'aba Spelling",
}

alias('1924-1972', {'Zaaba orthography', 'Zaaba spelling', 'pre-1972 standard', 'pre-1972'})

labels["Kelantan-Pattani"] = {
	display = "Kelantan-Pattani",
	link = "Kelantan-Pattani Malay",
}

alias('Kelantan-Pattani', {'Kelantan', 'Kelantan Malay', 'Kelantan-Pattani Malay', 'Kota Bharu', 'Pattani', 'Pattani Malay'})

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