Template:Bannerbox: Difference between revisions

Autogenerated
Autogenerated
 
Line 1: Line 1:
<includeonly><templatestyles src="Bannerbox/styles.css" /><div class="bannerbox {{{boxbgicon|}}}" style="align-items:start;{{#ifeq:{{{imagealign|}}}|right|flex-direction:row-reverse;|flex-dirction:row;}}{{#if:{{{boxbgcolor|}}}|background:{{{boxbgcolor}}};|}}{{#if:{{{boxpadding|}}}|padding:{{{boxpadding|0px}}};}}">
<includeonly><templatestyles src="Bannerbox/styles.css" /><div class="bannerbox {{{boxbgicon|}}}" style="align-items:start;{{#ifeq:{{{imagealign|}}}|right|flex-direction:row-reverse;|flex-dirction:row;}}{{#if:{{{boxbgcolor|}}}|background:{{{boxbgcolor}}};|}}{{#if:{{{boxpadding|}}}|padding:{{{boxpadding|0px}}};}}">
{{#if:{{{banner-image|}}}|<div class="banner-image">[[File:{{{banner-image}}}{{!}}{{#if:{{{image-width|}}}|{{{image-width}}}x{{{image-width}}}px|200x200px}}|alt={{{banner-image-alt|banner image}}}|{{!}}link=]]</div>|}}<div class="banner-content" style="padding:{{#if:{{{contentpadding|}}}|{{{contentpadding}}}"|10px}}>{{#if:{{{banner-title|}}}|{{#ifeq:{{{title-h1|1}}}|1|<h1 class="bannerhd" style="margin-top:0; {{#if:{{{titlesize|}}}|font-size:{{{titlesize}}};|font-size:1.6rem;}}{{#if:{{{titlecolor|}}}|color:{{{titlecolor}}};|}}">{{{banner-title}}}</h1>|<div class="banner-title"><div class="bannerhd" style="margin-top:0; {{#if:{{{titlesize|}}}|font-size:{{{titlesize}}};|font-size:1.6rem;}}{{#if:{{{titlecolor|}}}|color:{{{titlecolor}}};|}}">{{{banner-title}}}</div></div>}}|}}{{#if:{{{banner-text|}}}|<div class="banner-text" style="{{#if:{{{textcolor|}}}|color:{{{textcolor}}};|}}{{#if:{{{textsize|}}}|font-size:{{{textsize}}};|}}">{{{banner-text}}}</div>|}}</div></div></includeonly><noinclude>
{{#if:{{{banner-image|}}}|<div class="banner-image">[[File:{{{banner-image}}}{{!}}{{#if:{{{image-width|}}}|{{{image-width}}}x{{{image-width}}}px|200x200px}}|alt={{{banner-image-alt|banner image}}}|{{!}}link=]]</div>|}}<div class="banner-content" style="padding:{{#if:{{{contentpadding|}}}|{{{contentpadding}}}"|10px}}>{{#if:{{{banner-title|}}}|{{#ifeq:{{{title-h1|1}}}|1|<h1 class="bannerhd" style="margin-top:0; {{#if:{{{titlesize|}}}|font-size:{{{titlesize}}};|font-size:1.6rem;}}{{#if:{{{titlecolor|}}}|color:{{{titlecolor}}};|}}">{{{banner-title}}}</h1>|<div class="banner-title"><div class="bannerhd" style="margin-top:0; {{#if:{{{titlesize|}}}|font-size:{{{titlesize}}};|font-size:1.6rem;}}{{#if:{{{titlecolor|}}}|color:{{{titlecolor}}};|}}">{{{banner-title}}}</div></div>}}|}}{{#if:{{{banner-text|}}}|<div class="banner-text" style="{{#if:{{{textcolor|}}}|color:{{{textcolor}}};|}}{{#if:{{{textsize|}}}|font-size:{{{textsize}}};|}}">{{{banner-text}}}</div>|}}</div></div></includeonly><noinclude>
This template creates an intro banner on a page. The banner should contain an image (optional), a title and 2-3 lines of text.
<templatedata>
<templatedata>
{
{
Line 228: Line 227:
"boxbgcolor",
"boxbgcolor",
"boxbgicon"
"boxbgicon"
]
],
"description": {
"en": "This template creates an intro banner on a page. The banner should contain a title, 2-3 lines of text, and optionally, an image.",
"de": "Diese Vorlage erstellt ein Intro-Banner auf einer Seite. Das Banner sollte einen Titel, 2-3 Zeilen Text und optional ein Bild enthalten."
}
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 08:44, 2 April 2025

This template creates an intro banner on a page. The banner should contain a title, 2-3 lines of text, and optionally, an image.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Banner image (optional)banner-image

Image name, without the File: prefix, but with namespace prefix (if it exists)

Example
myimage.png
Unknownsuggested
Alternative image description (for accessibility)banner-image-alt

no description

Unknownsuggested
Image widthimage-width

Width in pixels. Default setting is 200

Example
e.g., 300 (default is 200)
Unknownsuggested
Image alignmentimagealign

Links oder rechts in der Box

Default
left
Example
left, right
Unknownsuggested
Headingbanner-title

Box heading

Stringsuggested
Mark title as h1 page headingtitle-h1

Mark this as h1, if your page hides the title area

Default
1
Example
1=h1
Booleansuggested
Heading sizetitlesize

no description

Default
1.6rem
Example
2em, 2rem, 15px
Unknownsuggested
Heading colortitlecolor

Color of the heading.

Example
#ffffff
Unknownsuggested
Textbanner-text

1-3 lines of text

Contentsuggested
Text sizetextsize

no description

Default
1.3rem
Example
12px, 1em
Unknownsuggested
Text colortextcolor

no description

Example
#000000
Unknownsuggested
Content padding (optional)contentpadding

Padding around text. Default is 10px.

Example
20px
Numbersuggested
Padding of the container box (optional)boxpadding

Sets the padding for the box. Default is 0.

Example
10px (default is 0)
Auto value
Unknownsuggested
Background color (optional)boxbgcolor

Default is grey (#f1f3f9). Replace with any hex value, (e.g. #ffffe6)

Default
#efefef
Stringsuggested
Background iconboxbgicon

no description

Example
bgicon1, bgicon2, bgicon3, swoosh
Unknownsuggested