Jump to content

Module:accel/pl/sandbox

Wiktionary වෙතින්


return {
	generate = function(params, entry)
		entry.pronunc = "{{pl-p}}";
		if (params.form == "comparative" or (params.form == "superlative")) and (params.pos == "adjective") then
			entry.declension = "{{pl-decl-adj-auto}}";
		elseif (params.form == "abstract noun" or (params.form == "verbal noun")) and (params.pos == "verb") then
			entry.pos_header = "Noun";
			entry.head = "{{pl-noun|n}}";
			entry.def = entry.make_def((params.form .. " of"));
			entry.declension = "{{pl-decl-noun-n|tantum=s}}";
		elseif params.form == "anterior adverbial participle" and (params.pos == "verb") then
			entry.pos_header = "Participle";
			entry.head = "{{pl-participle|aadv}}";
			entry.def = entry.make_def("inflection of", "||anterior|adverbial|part");
		elseif params.form == "contemporary adverbial participle" and (params.pos == "verb") then
			entry.pos_header = "Participle";
			entry.head = "{{pl-participle|cadv}}";
			entry.def = entry.make_def("inflection of", "||contemporary|adverbial|part");
		elseif params.form == "passive adjectival participle" and (params.pos == "verb") then
			entry.pos_header = "Participle";
			entry.head = "{{pl-participle|padj}}";
			entry.def = entry.make_def("inflection of", "||m|s|pasv|adjectival|part");
			entry.declension = "{{pl-decl-adj-auto}}";
		elseif params.form == "active adjectival participle" and (params.pos == "verb") then
			entry.pos_header = "Participle";
			entry.head = "{{pl-participle|aadj}}";
			entry.def = entry.make_def("inflection of", "||actv|adj|part");
			entry.declension = "{{pl-decl-adj-auto}}";
		elseif param.form == "neuter" and (param.pos == "adjective") then
			entry.pos_header = "Adjective";
			entry.head = "{{head|pl|adjective form}}"
			entry.def = entry.make_def("inflection of", "||n|nom//voc//acc|s;|nv|nom//acc//voc|p");
		end
	end
};
"https://si.wiktionary.org/w/index.php?title=Module:accel/pl/sandbox&oldid=34036" වෙතින් සම්ප්‍රවේශනය කෙරිණි