Module:cognates: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 51: Line 51:
local term, data = m_inline.parse(args[lang])
local term, data = m_inline.parse(args[lang])
data[1], data[2] = lang, term
data[1], data[2] = lang, term
local pre = data["pre"]
if pre then
pre = pre .. " "
data["pre"] = nil
end
local link = frame:expandTemplate{title = "m+", args = data}
local link = 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]]" end

Navigation menu