705
modifications
Aucun résumé des modifications |
Aucun résumé des modifications |
||
(5 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 = " | 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 | 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() | ||
if text then | |||
html_text | |||
:newline() | |||
:newline() | |||
:wikitext(text) | |||
end | |||
elseif text then | |||
html_text | html_text | ||
: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. | 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 | ||
Ligne 146 : | Ligne 152 : | ||
function p.banner(frame) | function p.banner(frame) | ||
return _banner(get_args(frame)) | return p._banner(get_args(frame)) | ||
end | end | ||
function p.stub(frame) | function p.stub(frame) | ||
return _stub(get_args(frame)) | return p._stub(get_args(frame)) | ||
end | end | ||
return p | return p |