Module:pam: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["Bacolor"] = {
	display = "Súlat Bacúlud",
	link = "Kapampangan language#Orthography",
}
alias('Bacolor', {'Baculud', 'Súlat Bacúlud', 'Sulat Baculud'})

labels["Guagua"] = {
	display = "Súlat Wáwâ",
	link = "Reforms of Kapampangan orthography",
}
alias("Guagua", {'Wawa', 'Sulat Wawa', 'Súlat Wáwâ'})

labels["Samson"] = {
	display = "Ámung Sámson",
    link = "Reforms of Kapampangan orthography",
}
alias('Samson', {'Amung Samson', 'Ámung Sámson', 'Ámung Samson'})

labels["Batiauan"] = {
	display = "Batiáuan",
    link = "Reforms of Kapampangan orthography",
}
alias('Batiauan', {'Batiáuan', 'Batiawan', 'Batiáwan', 'Batyawan', 'Batyáwan', 'Revised Guagua', 'Revised Wáwâ', 'Revised Wawa'})

labels["Abecedario"] = {
	display = "Abecedario",
	link = "Filipino orthography#Adoption of the Latin script",
}
alias('Abecedario', {'Abecedario orthography', 'Spanish orthography', 'pre-1940'})

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