Difference between revisions of "Template:Banner"

(Tag: 2017 source edit)
(Tag: 2017 source edit)


screenshot of banner template
Banner examples

Banner template with image, title and text

Template parameters

Parameter Description Type Status
Image name banner-image

Image name, without the File: prefix

Default
empty
Example
empty
Auto value
empty
File optional
Image width image-width

Width in pixels. Default setting is 200

Default
empty
Example
empty
Auto value
empty
Number optional
Heading banner-title

Text heading

Default
empty
Example
empty
Auto value
empty
String suggested
Text banner-text

1-3 lines of text

Default
empty
Example
empty
Auto value
empty
Content optional
Background color boxbgcolor

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

Default
empty
Example
empty
Auto value
empty
String optional
Padding of the container box boxpadding

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

Default
empty
Example
empty
Auto value
empty
Number optional
Content padding contentpadding

Text padding independent from box padding. Default is 0.

Default
empty
Example
empty
Auto value
empty
Number optional
Vertical alignment of the box content boxalignitems

no description

Default
empty
Example
start, center
Auto value
empty
String optional
Title margin titlemargin

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

Default
empty
Example
empty
Auto value
empty
Unknown optional

Attachments

Discussions