Zuletzt bearbeitet vor einem Jahr
von Redaktion

Vorlage:Banner: Unterschied zwischen den Versionen

K (1 Version importiert)
Keine Bearbeitungszusammenfassung
Markierung: 2017-Quelltext-Bearbeitung
 
(3 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 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"><h1 style="margin-top:0; {{#if:{{{titlesize|}}}|font-size:{{{titlesize}}};|font-size:1.6em;}}{{#if:{{{titlecolor|}}}|color:{{{titlecolor}}};|}}">{{{banner-title}}}</h1></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.
<templatedata>
<templatedata>
Zeile 41: Zeile 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.",
Zeile 173: Zeile 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
Zeile 189: Zeile 203:
"contentpadding",
"contentpadding",
"boxpadding",
"boxpadding",
"boxbgcolor"
"boxbgcolor",
"boxbgimg",
"boxbgicon"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Aktuelle Version vom 8. Februar 2023, 18:13 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.

Keine Beschreibung.

Vorlagenparameter

ParameterBeschreibungTypStatus
Bannergrafik (optional)banner-image

Bildname, ohne das Datei-Präfix, aber mit Namensraum-Präfix (falls es existiert)

Beispiel
meinbild.png
Unbekanntvorgeschlagen
Bildbreiteimage-width

Breite in Pixel. Standard ist 200

Standard
200
Beispiel
z.B. 300 (Standard ist 200)
Unbekanntvorgeschlagen
Bildpositionimagealign

Links oder rechts in der Box

Standard
left
Beispiel
left, right
Unbekanntvorgeschlagen
Überschriftbanner-title

Box heading

Mehrzeiliger Textvorgeschlagen
Größe der Überschrifttitlesize

keine Beschreibung

Standard
1.6em
Beispiel
2em, 15px
Unbekanntvorgeschlagen
Farbe der Überschrifttitlecolor

Color of the heading.

Beispiel
#ffffff
Unbekanntvorgeschlagen
Textbanner-text

1-3 Zeilen Text

Wikitextvorgeschlagen
Textgrößetextsize

keine Beschreibung

Standard
1.3em
Beispiel
12px, 1em
Unbekanntvorgeschlagen
Textfarbetextcolor

keine Beschreibung

Beispiel
#000000
Unbekanntvorgeschlagen
Textabstandcontentpadding

Abstand um den Text. Standard ist 10px.

Beispiel
20px
Zahlenwertvorgeschlagen
Abstand des Inhalts zur Boxboxpadding

Setzt den Abstand in Pixeln, Standard ist 0

Beispiel
10px (Standard ist 0)
Autowert
Unbekanntvorgeschlagen
Hintergrundfarbe der Box (optional)boxbgcolor

Standard ist grau (#f1f3f9). Kann mit beliebigem Hex-Wert ersetzt werden (z.B. #ffffe6)

Standard
#efefef
Mehrzeiliger Textvorgeschlagen
Hintergrundbildboxbgimg

keine Beschreibung

Unbekanntvorgeschlagen
Hintergrundiconboxbgicon

keine Beschreibung

Unbekanntvorgeschlagen
Keine Kategorien vergebenBearbeiten

Diskussionen