Module:links/templates: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 34: Line 34:
["ts"] = {},
["ts"] = {},
["sc"] = {},
["sc"] = {},
["w"] = {type = "boolean", default = false},
["name"] = {type = "boolean", default = true},
}
}
Line 68: Line 70:
end
end
-- Forward the information to full_link
local language_name = args.w and "[[" .. lang:getCanonicalName() .. "]]" or lang:getCanonicalName()
return require("Module:links").full_link(  
{
if term == "-" then
lang = lang,  
return language_name
sc = sc,  
else
term = term,
return (args.name and language_name .. " " or "") ..
alt = alt,  
require("Module:links").full_link(  
id = args["id"],  
{
tr = args["tr"],
lang = lang,  
ts = args["ts"],
sc = sc,  
genders = args["g"],  
term = term,
gloss = args["gloss"],  
alt = alt,  
pos = args["pos"],  
id = args["id"],  
lit = args["lit"],
tr = args["tr"],
nocont = true,
ts = args["ts"],
accel = args["accel-form"] and {
genders = args["g"],  
form = args["accel-form"],
gloss = args["gloss"],  
translit = args["accel-translit"],
pos = args["pos"],  
lemma = args["accel-lemma"],
lit = args["lit"],
lemma_translit = args["accel-lemma-translit"],
nocont = not frame.args["from_l"],
gender = args["accel-gender"],
accel = args["accel-form"] and {
nostore = args["accel-nostore"],
form = args["accel-form"],
} or nil,
translit = args["accel-translit"],
},
lemma = args["accel-lemma"],
face,
lemma_translit = args["accel-lemma-translit"],
allowSelfLink
gender = args["accel-gender"],
)
nostore = args["accel-nostore"],
} or nil,
},
face,
allowSelfLink
)
end
end
end


Line 226: Line 234:
Forward the information to full_link.
Forward the information to full_link.
]]
]]
local language_name = args.w and lang:makeWikipediaLink() or lang:getCanonicalName()
local language_name = args.w and "[[" .. lang:getCanonicalName() .. "]]" or lang:getCanonicalName()
if term == "-" then
if term == "-" then