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 61 : | Ligne 61 : | ||
["jeu"] = { | ["jeu"] = { | ||
warning = false, | warning = false, | ||
text = function(args) | text = function(args) | ||
local abbModule = require( "Module:Abréviation" ) | local abbModule = require( "Module:Abréviation" ) | ||
Ligne 141 : | Ligne 140 : | ||
["vide"] = { | ["vide"] = { | ||
warning = true, | warning = true, | ||
category = 'Sections vides ou incomplètes', | |||
category = ' | |||
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 174 : | Ligne 172 : | ||
local banner = data[args.nom:lower()] | local banner = data[args.nom:lower()] | ||
local image = banner.image | local image = banner.image or '' | ||
local text = banner.text | local text = banner.text | ||
local category = banner.category | local category = banner.category | ||
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 '' | ||
Ligne 191 : | Ligne 189 : | ||
end | end | ||
if image then | if image ~= '' then | ||
image = mw.html.create( ' | image = mw.html.create( 'span' ) | ||
:addClass( 'avt-section-banner-img' ) | |||
:wikitext( '[[Fichier:' .. image .. '|x30px|link=|alt=]]' ) | :wikitext( '[[Fichier:' .. image .. '|x30px|link=|alt=]]' ) | ||
:done() | :done() | ||
Ligne 203 : | 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) | ||
:done() | :done() | ||