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 112 : | Ligne 112 : | ||
text = function(args) | text = function(args) | ||
local link = args[1] | local link = args[1] | ||
local display = args['t1'] or link | |||
if not link then return '' end | |||
if | |||
text = '[[' .. link .. '|' .. display .. ']]' | |||
text = | |||
local many = false | |||
for i = 2, 5 do | for i = 2, 5 do | ||
link = args[i] | local link = args[i] | ||
local display = args['t' .. i] or link | |||
if link then | if link then | ||
many = true | |||
text = text .. | text = text .. ', [[' .. link .. '|' .. display .. ']]' | ||
else | else | ||
break | break | ||
end | end | ||
end | |||
if many then | |||
text = 'Articles principaux : ' .. text | |||
else | |||
text = 'Article principal : ' .. text | |||
end | end | ||