Demo writer (talk | contribs) m (1 revision imported) |
Demo writer (talk | contribs) m (1 revision imported) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Banner/styles.css" /><div class="bannerbox" style="align-items:start;{{#ifeq:{{{imagealign|}}}|right|flex-direction:row-reverse;|flex-dirction:row;}}{{#if:{{{boxbgcolor|}}}|background:{{{boxbgcolor}}};|}}padding:{{{boxpadding|0px}}};"> | <includeonly><templatestyles src="Banner/styles.css" /><div class="bannerbox {{{boxbgicon|}}}" style="align-items:start;{{#ifeq:{{{imagealign|}}}|right|flex-direction:row-reverse;|flex-dirction:row;}}{{#if:{{{boxbgcolor|}}}|background:{{{boxbgcolor}}};|}}{{#if:{{{boxpadding|}}}|padding:{{{boxpadding|0px}}};}}"> | ||
{{#if:{{{banner-image|}}}|<div class="banner-image">[[File:{{{banner-image}}}{{!}}{{#if:{{{image-width|}}}|{{{image-width}}}x{{{image-width}}}px|200x200px}}{{!}}link=]]</div>|}}<div class="banner-content" style="padding:{{#if:{{{contentpadding|}}}|{{{contentpadding}}}"|10px}}>{{#if:{{{banner-title|}}}|<div class="banner-title"><div class="bannerhd" style="margin-top:0; {{#if:{{{titlesize|}}}|font-size:{{{titlesize}}};|font-size:1.6em;}}{{#if:{{{titlecolor|}}}|color:{{{titlecolor}}};|}}">{{{banner-title}}}</div></div>|}}{{#if:{{{banner-text|}}}|<div class="banner-text" style="{{#if:{{{textcolor|}}}|color:{{{textcolor}}};|}}{{#if:{{{textsize|}}}|font-size:{{{textsize}}};|}}">{{{banner-text}}}</div>|}}</div></div></includeonly><noinclude> | {{#if:{{{banner-image|}}}|<div class="banner-image">[[File:{{{banner-image}}}{{!}}{{#if:{{{image-width|}}}|{{{image-width}}}x{{{image-width}}}px|200x200px}}{{!}}link=]]</div>|}}<div class="banner-content" style="padding:{{#if:{{{contentpadding|}}}|{{{contentpadding}}}"|10px}}>{{#if:{{{banner-title|}}}|<div class="banner-title"><div class="bannerhd" style="margin-top:0; {{#if:{{{titlesize|}}}|font-size:{{{titlesize}}};|font-size:1.6em;}}{{#if:{{{titlecolor|}}}|color:{{{titlecolor}}};|}}">{{{banner-title}}}</div></div>|}}{{#if:{{{banner-text|}}}|<div class="banner-text" style="{{#if:{{{textcolor|}}}|color:{{{textcolor}}};|}}{{#if:{{{textsize|}}}|font-size:{{{textsize}}};|}}">{{{banner-text}}}</div>|}}</div></div></includeonly><noinclude> | ||
This template creates an intro banner on a page. The banner should contain an image (optional), a title and 2-3 lines of text. | This template creates an intro banner on a page. The banner should contain an image (optional), a title and 2-3 lines of text. | ||
Line 41: | Line 41: | ||
"en": "Content padding (optional)", | "en": "Content padding (optional)", | ||
"de": "Textabstand" | "de": "Textabstand" | ||
}, | |||
"description": { | "description": { | ||
"en": "Padding around text. Default is 10px.", | "en": "Padding around text. Default is 10px.", | ||
Line 173: | Line 173: | ||
"en": "1.3em", | "en": "1.3em", | ||
"de": "1.3em" | "de": "1.3em" | ||
}, | |||
"suggested": true | |||
}, | |||
"boxbgimg": { | |||
"label": { | |||
"en": "Backbground image", | |||
"de": "Hintergrundbild" | |||
}, | |||
"suggested": true | |||
}, | |||
"boxbgicon": { | |||
"label": { | |||
"en": "Background icon", | |||
"de": "Hintergrundicon" | |||
}, | }, | ||
"suggested": true | "suggested": true | ||
Line 189: | Line 203: | ||
"contentpadding", | "contentpadding", | ||
"boxpadding", | "boxpadding", | ||
"boxbgcolor" | "boxbgcolor", | ||
"boxbgimg", | |||
"boxbgicon" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 16:29, 31 January 2023
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Banner image (optional) | banner-image | Image name, without the File: prefix, but with namespace prefix (if it exists)
| Unknown | suggested |
Image width | image-width | Width in pixels. Default setting is 200
| Unknown | suggested |
Image alignment | imagealign | Links oder rechts in der Box
| Unknown | suggested |
Heading | banner-title | Box heading | String | suggested |
Heading size | titlesize | no description
| Unknown | suggested |
Heading color | titlecolor | Color of the heading.
| Unknown | suggested |
Text | banner-text | 1-3 lines of text | Content | suggested |
Text size | textsize | no description
| Unknown | suggested |
Text color | textcolor | no description
| Unknown | suggested |
Content padding (optional) | contentpadding | Padding around text. Default is 10px.
| Number | suggested |
Padding of the container box (optional) | boxpadding | Sets the padding for the box. Default is 0.
| Unknown | suggested |
Background color (optional) | boxbgcolor | Default is grey (#f1f3f9). Replace with any hex value, (e.g. #ffffe6)
| String | suggested |
Backbground image | boxbgimg | no description | Unknown | suggested |
Background icon | boxbgicon | no description | Unknown | suggested |