Module:kilta-headword: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 23: Line 23:
if pos == "n" then
if pos == "n" then
if w[n]:match("[kh]wa$") or w[n]:match("a$") then
if w[n]:match("[kh]wa$") then
w[n] = sub(w[n], 1, -1) .. "úr"
w[n] = sub(w[n], 1, -3) .. "úr"
elseif w[n]:match("a$") then
w[n] = sub(w[n], 1, -2) .. "úr"
elseif w[n]:match("ës$") or w[n]:match("uin$") or w[n]:match("[str]$") then
elseif w[n]:match("ës$") or w[n]:match("uin$") or w[n]:match("[str]$") then
w[n] = w[n] .. "á"
w[n] = w[n] .. "á"
Line 47: Line 49:
["pl"] = {list = true},
["pl"] = {list = true},
["w"] = {default = mw.title.getCurrentTitle().text},
["w"] = {default = mw.title.getCurrentTitle().text},
["n"] = {type = number, default = 1}
["n"] = {type = "number", default = 1}
}
}