Modul:etymology/multi: Perbezaan antara semakan

Kandungan dihapus Kandungan ditambah
PeaceSeekers (bincang | sumb.)
Tiada ringkasan suntingan
Hakimi97 (bincang | sumb.)
Mengemas kini fungsi modul seperti di Wikikamus bahasa Inggeris
Teg: Dibalikkan
Baris 14:
local source_segs = {}
final_link_page = terminfo.term and terminfo.term ~= "-" and m_links.getLinkPageget_link_page(terminfo.term, sources[#sources], sc) or nil
for i, source in ipairs(sources) do
local seg
local display_term
if i < #sources and terminfo.term and terminfo.term ~= "-" then
local link_page = m_links.getLinkPageget_link_page(terminfo.term, source, sc)
local exists = link_page and mw.title.new(link_page).exists
local different = link_page ~= final_link_page
Baris 26:
if display_term then
local display, this_cats = m_etymology.insert_source_cat_get_display(categories, lang, source, true, nocat)
seg = m_links.language_link({
lang = source, term = terminfo.term, alt = display, tr = "-"
}, true)
if lang and not nocat then
-- Format categories, but only if there is a current language; {{cog}} currently gets no categories