45,646
edits
Tag: Undo |
No edit summary |
||
Line 7: | Line 7: | ||
[[Module:scripts]] | [[Module:scripts]] | ||
[[Module:parameters]] | [[Module:parameters]] | ||
]=] | ]=] | ||
Line 35: | Line 34: | ||
["ts"] = {}, | ["ts"] = {}, | ||
["sc"] = {}, | ["sc"] = {}, | ||
["w"] = {type = "boolean", default = true}, | |||
} | } | ||
Line 50: | Line 50: | ||
local lang = args[compat and "lang" or 1] | local lang = args[compat and "lang" or 1] | ||
lang = lang or "und" | lang = lang or "und" | ||
Line 76: | Line 69: | ||
end | end | ||
- | local language_name = args.w and lang:makeWikipediaLink() or lang:getCanonicalName() | ||
return require("Module:links").full_link( | |||
if term == "-" then | |||
return language_name | |||
else | |||
return language_name .. " " .. | |||
require("Module:links").full_link( | |||
{ | |||
lang = lang, | |||
sc = sc, | |||
term = term, | |||
alt = alt, | |||
id = args["id"], | |||
tr = args["tr"], | |||
ts = args["ts"], | |||
genders = args["g"], | |||
gloss = args["gloss"], | |||
pos = args["pos"], | |||
lit = args["lit"], | |||
nocont = true, | |||
accel = args["accel-form"] and { | |||
form = args["accel-form"], | |||
translit = args["accel-translit"], | |||
lemma = args["accel-lemma"], | |||
lemma_translit = args["accel-lemma-translit"], | |||
gender = args["accel-gender"], | |||
nostore = args["accel-nostore"], | |||
} or nil, | |||
}, | |||
face, | |||
allowSelfLink | |||
) | |||
end | |||
end | end | ||
Line 211: | Line 210: | ||
local lang = args[compat and "lang" or 1] | local lang = args[compat and "lang" or 1] | ||
lang = lang or "und" | lang = lang or "und" |