Module:rad-pronunciation: Difference between revisions

Jump to navigation Jump to search
m
Fixed homophones
mNo edit summary
m (Fixed homophones)
Line 207: Line 207:
if #homophones  > 0 then
if #homophones  > 0 then
homophones_show = "\n* Homophones:"
homophones_show = "\n* Homophones:"
for _, item in ipairs(table.sort(homophones)) do
table.sort(homophones)
for _, item in ipairs(homophones) do
homophones_show = homophones_show .. ", " .. m_links.full_link{ term = item, language = m_languages.get_by_code("rad") }
homophones_show = homophones_show .. ", " .. m_links.full_link{ term = item, language = m_languages.get_by_code("rad") }
end
end
homophones_show = mw.ustring.gsub(homophones_show, "(%:%,)", "%:")
homophones_show = mw.ustring.gsub(homophones_show, "(%:%,)", ":")
end
end

Navigation menu