Template:PageBanner

From Blue Gold Program Wiki
Revision as of 09:06, 17 November 2020 by Bigblue (talk | contribs) (1 revision imported)
(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.

The following parameters can be set in visual editing mode:

Template parameters

ParameterDescriptionTypeStatus
Image namebanner-image

Image name, without the File: prefix

Fileoptional
Image widthimage-width

Width in pixels. Default setting is 200

Numberoptional
Headingbanner-title

Text heading

Stringsuggested
Textbanner-text

1-3 lines of text

Contentoptional
Background colorboxbgcolor

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

Stringoptional
Padding of the container boxboxpadding

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

Numberoptional
Content paddingcontentpadding

Text padding independent from box padding. Default is 0.

Numberoptional
Vertical alignment of the box contentboxalignitems

no description

Example
start, center
Stringoptional
Title margintitlemargin

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

Unknownoptional