2,788
edits
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 | ||
if type(language.link) == "string" then | |||
link = link .. "[[" .. language.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 "" |