Различие между версиями «Модуль:User:Vitalik/inflection»

[отпатрулированная версия][отпатрулированная версия]
Содержимое удалено Содержимое добавлено
м v2.1.7: debug
м v2.1.7: Попытка использовать incorrect
Строка 36:
local unit = load_unit(unit_name)
-- fix_args(args)
return unit.forms(base, args, nil)
end
 
Строка 56:
fix_args(args)
 
local forms = unit.forms(base, args, frame)
local template = unit.template(base, args)
 
local output = ''
 
-- mw.log(forms['gen-pl'])
-- forms['gen-pl'] = frame:preprocess{forms['gen-pl']}
-- mw.log(forms['gen-pl'])
output = output .. frame:expandTemplate{title=template, args=forms}
if forms['error'] then