Template:Banner: Difference between revisions

m (1 revision imported)
No edit summary
Tag: 2017 source edit
 
Line 11: Line 11:
},
},
"description": {
"description": {
"en": "Default is grey (#efefef). Replace with any hex value, (e.g. #ffffe6)",
"en": "Default is grey (#f1f3f9). Replace with any hex value, (e.g. #ffffe6)",
"de": "Standard ist grau (#efefef). Kann mit beliebigem Hex-Wert ersetzt werden (z.B. #ffffe6)"
"de": "Standard ist grau (#f1f3f9). Kann mit beliebigem Hex-Wert ersetzt werden (z.B. #ffffe6)"
},
},
"type": "string",
"type": "string",
Line 31: Line 31:
},
},
"example": {
"example": {
"en": "e.g., 10px (default is 0)",
"en": "10px (default is 0)",
"de": "z.B. 10px (Standard ist 0)"
"de": "10px (Standard ist 0)"
},
},
"suggested": true,
"suggested": true,

Latest revision as of 08:57, 12 April 2022

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

No description.

Template parameters

ParameterDescriptionTypeStatus
Banner image (optional)banner-image

Image name, without the File: prefix, but with namespace prefix (if it exists)

Example
myimage.png
Unknownsuggested
Image widthimage-width

Width in pixels. Default setting is 200

Example
e.g., 300 (default is 200)
Unknownsuggested
Image alignmentimagealign

Links oder rechts in der Box

Default
left
Example
left, right
Unknownsuggested
Headingbanner-title

Box heading

Stringsuggested
Heading sizetitlesize

no description

Default
1.6em
Example
2em, 15px
Unknownsuggested
Heading colortitlecolor

Color of the heading.

Example
#ffffff
Unknownsuggested
Textbanner-text

1-3 lines of text

Contentsuggested
Text sizetextsize

no description

Default
1.3em
Example
12px, 1em
Unknownsuggested
Text colortextcolor

no description

Example
#000000
Unknownsuggested
Content padding (optional)contentpadding

Padding around text. Default is 10px.

Example
20px
Numbersuggested
Padding of the container box (optional)boxpadding

Sets the padding for the box. Default is 0.

Example
10px (default is 0)
Auto value
Unknownsuggested
Background color (optional)boxbgcolor

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

Default
#efefef
Stringsuggested