20 182
modifications
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 112 : | Ligne 112 : | ||
text = function(args) | text = function(args) | ||
local link = args[1] | local link = args[1] | ||
if not link then return "Lien ?" end | |||
if | local text | ||
if args[2] then | |||
text = "Articles principaux : " | |||
else | |||
text = "Article principal : " | |||
end | |||
text = | local linkText = args["t1"] or link | ||
text = text .. "[[:" .. link .. "|" .. linkText .. "]]" | |||
for i = 2, 5 do | for i = 2, 5 do | ||
link = args[i] | |||
if link then | if link then | ||
linkText = args["t" .. i] or link | |||
text = text .. | text = text .. ", [[:" .. link .. "|" .. linkText .. "]]" | ||
else | else | ||
break | break | ||
end | end | ||
end | end | ||
modifications