Modulis:Skaits
Lua kļūda Modulis:Documentation, 144. rinda: message: type error in message cfg.container (string expected, got nil).
local mm = require('Module:Math')
local p = {}
function p._main(args)
local case, result
local number = tonumber(args[1])
local vsk = args[2]
local dsk = args[3]
local sep = args[4] or ' '
if number then
if mm._mod(math.abs(number),10) == 1 and mm._mod(math.abs(number),100) ~= 11 then
case = vsk
else
case = dsk
end
end
result = number .. sep .. case
return result
end
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame, {
wrappers = Skaits
})
return p._main(args)
end
return p