Modification de Module:Bandeau de rubrique
La modification peut être annulée. Veuillez vérifier les différences ci-dessous pour voir si c’est bien ce que vous voulez faire, puis publier ces changements pour finaliser l’annulation de cette modification.
Version actuelle | Votre texte | ||
Ligne 134 : | Ligne 134 : | ||
else | else | ||
text = 'Article principal : ' .. text | text = 'Article principal : ' .. text | ||
end | |||
return text | |||
end | |||
}, | |||
["utile"] = { | |||
warning = false, | |||
text = function(args) | |||
local link = args[1] | |||
local display = args['t1'] or link | |||
if not link then return '' end | |||
text = '[' .. link .. ' ' .. display .. ' ]' | |||
local many = false | |||
for i = 2, 5 do | |||
local link = args[i] | |||
local display = args['t' .. i] or link | |||
if link then | |||
many = true | |||
text = text .. ', [' .. link .. ' ' .. display .. ']' | |||
else | |||
break | |||
end | |||
end | |||
if many then | |||
text = 'Liens utiles : ' .. text | |||
else | |||
text = 'Lien utile : ' .. text | |||
end | end | ||