-- The values and functions in this submodule should be localized per wiki.
local p =
function p.getOrdinalSuffix(num) if tostring(num):sub(-2,-2)
'1' then return "st" elseif num
'3' then return "rd" else return "th" endend
function p.addDelimiters(n) local left, num, right = string.match(n, "^([^%d]*%d)(%d*)(.-)$") if left and num and right then return left .. (num:reverse:gsub("(%d%d%d)", "%1" .. p['numeric']['delimiter']):reverse) .. right else return n endend
return p