Module:links: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 12: Line 12:
local text = args["text"]
local text = args["text"]
local pos = args["pos"]
local pos = args["pos"]
local noname = args["noname"]
local language = require("Module:languages").get_by_code(args["code"])
local language = require("Module:languages").get_by_code(args["code"])
local link = ""
local link = ""
if link_type == "mention" then
if link_type == "mention" and (not noname) then
if type(language.link) == "string" then
if type(language.link) == "string" then
link = link .. "[[" .. language.link .. "|" .. language.name .. "]] "
link = link .. "[[" .. language.link .. "|" .. language.name .. "]] "
Line 57: Line 58:
["display"] = args[3] or args["d"] or args["display"],
["display"] = args[3] or args["d"] or args["display"],
["text"] = args[4] or args["t"] or args["text"],
["text"] = args[4] or args["t"] or args["text"],
["pos"] = args["pos"]
["pos"] = args["pos"],
["noname"] = args["noname"]
}
}
end
end

Navigation menu