Module:mg-spel: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 36: Line 36:
c = c:gsub("x", "is")
c = c:gsub("x", "is")
local list = {e, a, s}
local list = {e, a, c, s}
for i = 1, 3 do
for i = 1, 4 do
for j = 1, 3 do
for j = 1, 4 do
if list[i] == list[j] then
if list[i] ~= term and list[i] == list[j] then
table.insert(qs, abbr[i])
table.insert(qs, abbr[i])
end
end
end
end
if list[i] ~= term then
table.insert(ret, "* " .. m_l.full_link({term = list[i], lang = lang}) .. " " .. m_q.format_qualifier(qs or {abbr[i]}) .. "\n")
table.insert(ret, "* " .. m_l.full_link({term = list[i], lang = lang}) .. " " .. m_q.format_qualifier(qs or {abbr[i]}) .. "\n")
end
end
end