Module:links/templates: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 57: Line 57:
end
end
-- Used in [[Template:l]] and [[Template:m]].
-- Used in [[Template:l]] and [[Template:mn]].
function export.l_term_t(frame)
function export.l_term_t(frame)
local args, iargs = get_args(frame)
local args, iargs = get_args(frame)
Line 71: Line 71:
end
end
local langname = iargs.langname and (
local langname = (args.name or iargs.langname) and (
args.w and lang:makeWikipediaLink() or
args.w and lang:makeWikipediaLink() or
lang:getCanonicalName()
lang:getCanonicalName()