Module:etymology/multi: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 7: Line 7:


function export.format_sources(data)
function export.format_sources(data)
local lang, sc, sources, terminfo, sort_key, categories, nocat, conj, to_wikt =
--local lang, sc, sources, terminfo, sort_key, categories, nocat, conj, to_wikt =
data.lang, data.sc, data.sources, data.terminfo, data.sort_key, data.categories, data.nocat, data.conj, data.to_wikt
--data.lang, data.sc, data.sources, data.terminfo, data.sort_key, data.categories, data.nocat, data.conj, data.to_wikt
local lang, sc, sources, terminfo, sort_key, categories, nocat, conj =
data.lang, data.sc, data.sources, data.terminfo, data.sort_key, data.categories, data.nocat, data.conj
local m_utilities
local m_utilities
if lang and not nocat then
if lang and not nocat then
Line 35: Line 37:
}
}
seg = m_links.language_link {
seg = m_links.language_link {
lang = source, term = terminfo.term, alt = display, tr = "-", to_wikt = to_wikt
lang = source, term = terminfo.term, alt = display, tr = "-" --, to_wikt = to_wikt
}
}
if lang and not nocat then
if lang and not nocat then
Line 75: Line 77:
-- Internal implementation of {{derived|...}} template with multiple source languages
-- Internal implementation of {{derived|...}} template with multiple source languages
function export.format_multi_derived(data)
function export.format_multi_derived(data)
return export.format_sources(data) .. m_etymology.process_and_create_link(data.terminfo, data.template_name, data.to_wikt)
return export.format_sources(data) .. m_etymology.process_and_create_link(data.terminfo, data.template_name) --, data.to_wikt)
end
end