Module:cognates: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
 
Line 57: Line 57:
end
end
local link = (pre or "") .. frame:expandTemplate{title = "m+", args = data}
local link = (pre or "") .. frame:expandTemplate{title = "m+", args = data}
if nat and params.nocat == false then link = link .. "[[Category:" .. nat.name .. " terms with " .. m_languages.get_by_code(lang).name .. " cognates]]" end
if nat and params.nocat == false then link = link .. "[[Category:" .. nat.name .. " terms with " .. m_languages.get_by_code(lang).name .. " cognates|" .. mw.title.getCurrentTitle().subpageText .. "]]" end
table.insert(links, link)
table.insert(links, link)
end
end

Navigation menu