Modul:Ordinal: Redaktələr arasındakı fərq

Redaktənin izahı yoxdur
Redaktənin izahı yoxdur
Sətir 21: Sətir 21:
function p._ordinal(n, d, sup)
function p._ordinal(n, d, sup)
local x = tonumber(mw.ustring.match(n, "(%d*)%W*$"))
local x = tonumber(mw.ustring.match(n, "(%d*)%W*$"))
local suffix = ""
local suffix = "ci"
if x then
if x then
local mod10 = math.abs(x) % 10
local mod10 = math.abs(x) % 10