Aller au contenu

« Module:Bandeau de rubrique » : différence entre les versions

Ajout du bandeau connexe
Kharmitch (discussion | contributions)
mAucun résumé des modifications
Kharmitch (discussion | contributions)
Ajout du bandeau connexe
Ligne 6 : Ligne 6 :


data = {
data = {
["connexe"] = {
warning  = false,
text    = function(args)
local link = args[1]
if not link then return "Lien ?" end
local text
if args[2] then
text = "Articles connexes : "
else
text = "Article connexe : "
end
local linkText = args["t1"] or link
text = text .. "[[:" .. link .. "|" .. linkText .. "]]"
for i = 2, 5 do
link = args[i]
if link then
linkText = args["t" .. i] or link
text = text .. ", [[:" .. link .. "|" .. linkText .. "]]"
else
break
end
end
return text
end
},
["extrait"] = {
["extrait"] = {
         warning  = false,
         warning  = false,
Bureaucrate, commentadmin, emailconfirmed, Administrateurs d’interface, staff, Administrateur
62 733

modifications