Module:cognates: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
(Created page with "local export = {} local getArgs = require('Module:Arguments').getArgs local m_inline = require("Module:inline") local m_languages = require("Module:languages") local m_links = require("Module:links") function export.show(frame) local args = getArgs(frame) local links = {} local nat = m_languages.find_by_code(args[1] or "") ~= nil and m_languages.get_by_code(args[1]) local params = { nocap = false, } for lang, entry in pairs(args) do if type(lang) == "string...")
 
No edit summary
Line 23: Line 23:
data["term"] = term
data["term"] = term
data["showlanguage"] = true
data["showlanguage"] = true
local link = m_links.full_link(data)
local link = m_links.full_link(data, "term")
if nat then
if nat then
link = link .. "[[Category:" .. nat.name .. " terms with " .. lang.name .. " cognates]]"
link = link .. "[[Category:" .. nat.name .. " terms with " .. lang.name .. " cognates]]"

Navigation menu