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

m
aucun résumé des modifications
Kharmitch (discussion | contributions)
Aucun résumé des modifications
Kharmitch (discussion | contributions)
mAucun résumé des modifications
Ligne 140 : Ligne 140 :
["vide"] = {
["vide"] = {
warning  = true,
warning  = true,
image    = 'Portail participation.png',
category = 'Sections vides ou incomplètes',
category = 'Sections vides ou incomplètes',
text    = function(args)
text    = function(args)
Ligne 172 : Ligne 173 :
local banner = data[args.nom:lower()]
local banner = data[args.nom:lower()]
local image = banner.image or ''
local image = banner.image
local text = banner.text
local text = banner.text
local category = banner.category
local category = banner.category
Ligne 189 : Ligne 190 :
end
end
if image ~= '' then
if image then
image = mw.html.create( 'span' )
image = mw.html.create( 'div' )
:addClass( 'avt-section-banner-img' )
:wikitext( '[[Fichier:' .. image .. '|x30px|link=|alt=]]' )
:wikitext( '[[Fichier:' .. image .. '|x30px|link=|alt=]]' )
:done()
:done()
Ligne 202 : Ligne 202 :
local res = mw.html.create( 'div' )
local res = mw.html.create( 'div' )
:addClass( 'avt-section-banner noexcerpt' )
:addClass( 'avt-section-banner noexcerpt' )
:wikitext(tostring(image) .. text)
:node(image)
:tag( 'div' )
:wikitext(text)
:done()
:done()
:done()
Bureaucrate, commentadmin, emailconfirmed, Administrateurs d’interface, staff, Administrateur
62 733

modifications