-- Ordinals for Azerbaijani-- Takes a number and returns its ordinal.
local suffixes =
local function ordinal(number) local suffix if number
0 then suffix = "ci" elseif number %100
0 then suffix = suffixes[number % 100] else suffix = suffixes[number %10] or "" end return number .. "-" .. suffixend
-- Just for testing by allowing a #invoke: callp =
function p.Ordinal(frame) number = tonumber(frame.args[1] or frame.args.number) or 0 return ordinal(number)end
return p