Различие между версиями «Модуль:User:Vitalik/inflection»
[отпатрулированная версия] | [отпатрулированная версия] |
Содержимое удалено Содержимое добавлено
м v2.1.8: fix |
м v2.1.8: latest fix |
||
Строка 59:
local template = unit.template(base, args)
local output =
-- output = output .. '|' .. key .. '=' .. value .. '\n'
-- mw.log(key .. ' => ' .. type(key))▼
-- mw.log(value .. ' => ' .. type(value))▼
▲ output = '{{' .. template .. '\n'
▲ for key, value in pairs(forms) do
▲ mw.log(key .. ' => ' .. type(key))
if forms['error'] and forms['error'] ~= '' then▼
▲ mw.log(value .. ' => ' .. type(value))
▲ end
▲ if forms['error'] then
output = output .. '\n' .. wu.div_red(forms['error'])
end
if forms['error_category'] and forms['error_category'] ~= '' then
output = output .. '[[Категория:' .. forms['error_category'] .. ']]'
end
return output
end
|