Module:cognates: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 19: Line 19:
if m_languages.find_by_code(lang) and lang ~= nat then
if m_languages.find_by_code(lang) and lang ~= nat then
table.insert(langs, lang)
table.insert(langs, lang)
--local term, data = m_inline.parse(entry)
--data[1], data[2] = lang, term
--local link = frame:expandTemplate{title = "m+", args = data}
--if nat then link = link .. "[[Category:" .. nat.name .. " terms with " .. lang.name .. " cognates]]" end
--table.insert(links, link)
elseif params[lang] ~= nil then --check for parameters
elseif params[lang] ~= nil then --check for parameters
params[lang] = true
params[lang] = true
Line 48: Line 43:
for _, lang in ipairs(langs) do
for _, lang in ipairs(langs) do
--local term, data = m_inline.parse(args[lang])
--data[1], data[2] = lang, term
--local link = frame:expandTemplate{title = "m+", args = data}
--if nat then link = link .. "[[Category:" .. nat.name .. " terms with " .. lang.name .. " cognates]]" end
--table.insert(links, link)
end
end

Navigation menu