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

155 octets ajoutés ,  29 janvier 2023
aucun résumé des modifications
mAucun résumé des modifications
Aucun résumé des modifications
 
(4 versions intermédiaires par le même utilisateur non affichées)
Ligne 6 : Ligne 6 :
note = "banner-note",
note = "banner-note",
section = "banner-section",
section = "banner-section",
simple = "bandeau-simple",
simple = "banner-simple",
}
}


Ligne 59 : Ligne 59 :
:addClass(shape_class)
:addClass(shape_class)
:addClass(level_class)
:addClass(level_class)
:addClass("noexcerpt")


local image = args.image
local image = args.image
if image then
if image then
local alt = args["image légende"] or ""
local alt = args["image légende"] or ""
local size = args["image taille"] or config.image_size
local size = args["image taille"] or default.image_size
image = cells
image = cells
:tag("div")
:tag("div")
Ligne 78 : Ligne 79 :
:wikitext(title)
:wikitext(title)
:done()
:done()
end
if text then
 
html_text
if text then
:newline()
:newline()
:wikitext(text)
end
elseif text then
html_text
html_text
:newline()
:newline()
:newline()
:wikitext(text)
:wikitext(text)
Ligne 113 : Ligne 117 :
title = string.format(
title = string.format(
default.stub_title_subject,
default.stub_title_subject,
subject.sujet
subject.subject
)
)
category = string.format(
category = string.format(
Ligne 129 : Ligne 133 :
titre = title,
titre = title,
texte = default.stub_text,
texte = default.stub_text,
image = subject.image,
["image taille"] = subject.size,
}) .. category
}) .. category
end
end