Aller au contenu

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

aucun résumé des modifications
Kharmitch (discussion | contributions)
Aucun résumé des modifications
Balise : Révoqué
Kharmitch (discussion | contributions)
Aucun résumé des modifications
 
(3 versions intermédiaires par le même utilisateur non affichées)
Ligne 134 : Ligne 134 :
else
else
text = 'Article principal : ' .. text
text = 'Article principal : ' .. text
end
return text
end
},
["principal"] = {
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 173 : Ligne 142 :
warning  = true,
warning  = true,
image    = 'Portail participation.png',
image    = 'Portail participation.png',
category = 'Sections vides ou incomplètes',
category = 'Rubrique vide ou incomplète',
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 210 : Ligne 179 :
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'] or args[1]  -- FIXME: args[1] conflit
if game ~= '' then
if game ~= '' then
game = require( 'Module:Abréviation' ).name(game) or ''
game = require( 'Module:Abréviation' ).name(game) or ''
Bureaucrate, commentadmin, emailconfirmed, Administrateurs d’interface, staff, Administrateur
62 734

modifications