45,343
edits
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 34: | Line 34: | ||
["ts"] = {}, | ["ts"] = {}, | ||
["sc"] = {}, | ["sc"] = {}, | ||
["w"] = {type = "boolean", default = true}, | ["w"] = {type = "boolean", default = false}, | ||
["name"] = {type = "boolean", default = true}, | |||
} | } | ||
Line 69: | Line 70: | ||
end | end | ||
local language_name = args.w and lang: | local language_name = args.w and "[[" .. lang:getCanonicalName() .. "]]" or lang:getCanonicalName() | ||
if term == "-" then | if term == "-" then | ||
return language_name | return language_name | ||
else | else | ||
return language_name .. " " .. | return (args.name and language_name .. " " or "") .. | ||
require("Module:links").full_link( | require("Module:links").full_link( | ||
{ | { | ||
Line 88: | Line 89: | ||
pos = args["pos"], | pos = args["pos"], | ||
lit = args["lit"], | lit = args["lit"], | ||
nocont = | nocont = not frame.args["from_l"], | ||
accel = args["accel-form"] and { | accel = args["accel-form"] and { | ||
form = args["accel-form"], | form = args["accel-form"], | ||
Line 233: | Line 234: | ||
Forward the information to full_link. | Forward the information to full_link. | ||
]] | ]] | ||
local language_name = args.w and lang: | local language_name = args.w and "[[" .. lang:getCanonicalName() .. "]]" or lang:getCanonicalName() | ||
if term == "-" then | if term == "-" then |