Modul:accel/ru

A Wikiszótárból, a nyitott szótárból

A modult a Modul:accel/ru/doc lapon tudod dokumentálni

return {generate = function (params, entry)
	local template = {
		['comparative'] = 'comparative of',
	}
	
	if params.pos == 'adverb' and params.form == 'comparative' then
		entry.head = '{{head|ru|comparative adverb|head=' .. params.target .. '}}'
	end

	if template[params.form] then	
		entry.def = '{{' .. template[params.form] .. '|' .. params.lang
			.. (params.pos ~= 'adjective' and '|POS=' .. params.pos or '')
			.. '|' .. params.origin .. '}}'
	end
	entry.pronunc = '* {{ru-IPA|' .. params.target .. '}}'
end}