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 132 : | Ligne 132 : | ||
break | break | ||
end | end | ||
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 | ||
Ligne 140 : | Ligne 171 : | ||
warning = true, | warning = true, | ||
image = 'Portail participation.png', | image = 'Portail participation.png', | ||
category = ' | category = 'Sections vides ou incomplètes', | ||
text = function(args) | text = function(args) | ||
local text = 'Cette rubrique est vide, insuffisamment détaillée ou incomplète. [' | local text = 'Cette rubrique est vide, insuffisamment détaillée ou incomplète. [' | ||
Ligne 177 : | Ligne 208 : | ||
if category and mw.title.getCurrentTitle().namespace == 0 then | if category and mw.title.getCurrentTitle().namespace == 0 then | ||
local game = args['jeu'] | local game = args['jeu'] | ||
if game ~= '' then | if game ~= '' then | ||
game = require( 'Module:Abréviation' ).name(game) or '' | game = require( 'Module:Abréviation' ).name(game) or '' |