Vorlage:Banner: Unterschied zwischen den Versionen

Banner>WikiSysop
 
K (1 Version importiert)
 
(kein Unterschied)

Aktuelle Version vom 7. März 2021, 18:42 Uhr

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

Add new banner

Vorlagenparameter

ParameterBeschreibungTypStatus
Banner image (optional)banner-image

Image name, without the File: prefix

Beispiel
myimage.png
Unbekanntvorgeschlagen
Image width (if image is used)image-width

Width in pixels. Default setting is 200

Standard
200
Nummervorgeschlagen
Image alignmentimagealign

keine Beschreibung

Standard
left
Beispiel
left, right
Unbekanntvorgeschlagen
Heading (optional)banner-title

Box heading

Zeichenfolgevorgeschlagen
Heading sizetitlesize

keine Beschreibung

Standard
1.6em
Beispiel
2em, 15px
Unbekanntvorgeschlagen
Textbanner-text

1-3 lines of text

Inhaltvorgeschlagen
Text sizetextsize

keine Beschreibung

Standard
1.3em
Beispiel
12px, 1em
Unbekanntvorgeschlagen
Background color (optional)boxbgcolor

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

Standard
#efefef
Zeichenfolgevorgeschlagen
Heading colorhcolor

Color of the heading.

Standard
#000000
Beispiel
#ffffff
Unbekanntvorgeschlagen
Text colortextcolor

keine Beschreibung

Standard
#000000
Beispiel
#000000
Unbekanntveraltet
Padding of the container box (optional)boxpadding

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

Standard
0
Beispiel
8
Autowert
Nummervorgeschlagen
Border (optional)boxborder

adds a border around the box

Beispiel
1px solid #efefef
Unbekanntvorgeschlagen
Content padding (optional)contentpadding

Text padding independent from box padding. Default is 0.

Standard
0
Beispiel
0 0 0 10
Nummervorgeschlagen
Vertical alignment of the box contentboxalignitems

Box can be top-aligned with value "start" or center-aligned (value "center")

Standard
start
Beispiel
start, center
Zeichenfolgevorgeschlagen
Margin around titletitlemargin

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

Beispiel
0px 0px 0px 0px
Unbekanntvorgeschlagen
Keine Kategorien vergebenBearbeiten

Diskussionen

Anhänge