Module:links/templates: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 68: Line 68:
end
end
-- Forward the information to full_link
--[[
return require("Module:links").full_link(  
Add a language name, linked to Wikipedia if the Wikipedia parameter is set to true.
Forward the information to full_link.
]]
local language_name = args.w and lang:makeWikipediaLink() or lang:getCanonicalName()
if term == "-" then
return language_name
else
return language_name .. " " ..
require("Module:links").full_link(  
{
{
lang = lang,  
lang = lang,  
Line 95: Line 104:
allowSelfLink
allowSelfLink
)
)
end
end
end


Navigation menu