Module:links: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 15: Line 15:
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" and (not noname) then
if args["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 22: Line 22:
end
end
end
end
local link_format = (link_type == "mention" and "''") or ""
local link_format = (args["link_type"] == "mention" and "''") or ""
local link_proto = (language.proto and ("Appendix:" .. string.gsub(language.name, " ", "_") .. "/")) or ""
local link_proto = (language.proto and ("Appendix:" .. string.gsub(language.name, " ", "_") .. "/")) or ""
local link_display_proto = (language.proto and "*") or ""
local link_display_proto = (language.proto and "*") or ""

Navigation menu