Module:links: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 12: Line 12:
local language = require("Module:languages").get_by_code(language_code)
local language = require("Module:languages").get_by_code(language_code)
local link = ""
local link = ""
if type(language.link) == "string" then
if link_type == "mention" then
link = link .. "[[" .. language.link .. "|" .. language.name .. "]] "
if type(language.link) == "string" then
else
link = link .. "[[" .. language.link .. "|" .. language.name .. "]] "
link = link .. language.name .. " "
else
link = link .. language.name .. " "
end
end
end
local link_format = (link_type == "mention" and "''") or ""
local link_format = (link_type == "mention" and "''") or ""

Navigation menu