Module:rad-stem/templates: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
mNo edit summary
Line 61: Line 61:
for _, i in ipairs(word) do
for _, i in ipairs(word) do
local new_link = rad_link(i['word'])
local new_link = rad_link(i['word'])
if i['note'] then new_link = new_link .. " (<i>" .. i['note'] .. "</i>)" end
if i['note'] then new_link = new_link .. " <small>(<i>" .. i['note'] .. "</i>)</small>" end
table.insert(links, new_link)
table.insert(links, new_link)
table.insert(IPAs, rad_IPA(i['word']))
table.insert(IPAs, rad_IPA(i['word']))
Line 88: Line 88:
local adj_broken_e = ""
local adj_broken_e = ""
if adj then
if adj then
if not mw.ustring.match(adj, "(ș)$") then error("All adjectives must end in -ș") end
adj = " " .. adj
adj = " " .. adj
adj_broken = args['adjbreak'] or break_adj(adj)  
adj_broken = args['adjbreak'] or break_adj(adj)  
Line 150: Line 151:
[2] = {['word'] = args['altgen'], ['note'] = args['altgen_note']}
[2] = {['word'] = args['altgen'], ['note'] = args['altgen_note']}
}
}
if adj_broken then list[2]['word'] = list[2]['word'] .. adj_broken .. "k" end
if post then list[2]['word'] = list[2]['word'] .. post end
local counter = 2
local counter = 2
while args['altgen' .. counter] do
while args['altgen' .. counter] do

Navigation menu