No categories assigned

Bannerbox

Revision as of 09:20, 30 July 2020 by Mlink-rodrigue (talk | contribs) (Created page with " <includeonly><templatestyles src="Banner/styles.css" /><div class="bannerbox" style="align-items:{{{boxalignitems|start}}}; background:{{{boxbgcolor|#efefef}}}; padding:{{{bo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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

The template files (Template:Banner and Template:Banner/styles.css can be downloaded as part of the template package.

screenshot of banner template
Banner examples

The following parameters can be set in visual editing mode:

Template parameters

ParameterDescriptionTypeStatus
Image namebanner-image

Image name, without the File: prefix

Default
empty
Example
empty
Auto value
empty
Fileoptional
Image widthimage-width

Width in pixels. Default setting is 200

Default
empty
Example
empty
Auto value
empty
Numberoptional
Headingbanner-title

Text heading

Default
empty
Example
empty
Auto value
empty
Stringsuggested
Textbanner-text

1-3 lines of text

Default
empty
Example
empty
Auto value
empty
Contentoptional
Background colorboxbgcolor

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

Default
empty
Example
empty
Auto value
empty
Stringoptional
Padding of the container boxboxpadding

Sets the padding for the box in pixels. Default is 20.

Default
empty
Example
empty
Auto value
empty
Numberoptional
Content paddingcontentpadding

Text padding independent from box padding. Default is 0.

Default
empty
Example
empty
Auto value
empty
Numberoptional
Vertical alignment of the box contentboxalignitems

no description

Default
empty
Example
start, center
Auto value
empty
Stringoptional
Title margintitlemargin

Allows to customize the margin of the title (e.g,. 0px 0px 0px 0px)

Default
empty
Example
empty
Auto value
empty
Unknownoptional

Attachments

Discussions