Difference between revisions of "Template:Banner"

(Tag: 2017 source edit)
eval>WikiSysop


[[File:{{{image}}}|left|frameless|link=]]

Template for MediaWiki/Homepage redesign. The CSS is in MediaWiki:Gadget-site.css. See also Template:Full-width image.

Template for full-width images with inset text.Banner template with image, title and text

requiredno descriptionno descriptionUnknownno descriptionUnknownno descriptionUnknownno descriptionUnknownbanner-title

Template parameters

Parameter Description Type Status
Image name banner-image

Image name, without the File: prefix

Default
empty
Example
Example.png
empty
Auto value
empty
File optional Title title
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 optionalsuggested
SectionText section banner-text

1-3 lines of text

Default
empty
Example
empty
Auto value
empty
Content optional
DirectionBackground color direction boxbgcolor

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

Default
empty
Example
empty
Auto value
empty
String optional Section-id section-id
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 Short quote short quote
Content padding contentpadding

Text padding independent from box padding. Default is 0.

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

no description

Default
empty
Example
empty
start, center
Auto value
empty
String suggested 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