Vorlage:Flexbox Hauptseite: Unterschied zwischen den Versionen
Aus Wugwiki
Zur Navigation springenZur Suche springenDBO (Diskussion | Beiträge) |
DBO (Diskussion | Beiträge) |
||
(32 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
<includeonly> | <includeonly> | ||
− | <div style="margin:5px; | + | <div id="title" style=" |
− | + | margin-right:5px; | |
+ | padding:4px 4px 4px 14px; | ||
+ | background-color:{{{color|#f8fafc}}}; | ||
text-align:left; | text-align:left; | ||
color: {{{titlecolor|{{{bgcolor|white}}}}}}; | color: {{{titlecolor|{{{bgcolor|white}}}}}}; | ||
font-weight:bold; font-size:125%; | font-weight:bold; font-size:125%; | ||
-moz-border-radius:3px 3px 0px 0px; padding:3px; padding-left:5px; {{{titlestyle}}};">{{{title}}}</div> | -moz-border-radius:3px 3px 0px 0px; padding:3px; padding-left:5px; {{{titlestyle}}};">{{{title}}}</div> | ||
− | <div style=" | + | <div id="text" style=" |
+ | margin-right:5px; | ||
border: 1px solid {{{color|#136381}}}; border-top-width:0px; | border: 1px solid {{{color|#136381}}}; border-top-width:0px; | ||
color: {{{textcolor|black}}}; background-color:{{{bgcolor|#f6fcfe}}}; | color: {{{textcolor|black}}}; background-color:{{{bgcolor|#f6fcfe}}}; | ||
padding:5px; -moz-border-radius:0px 0px 3px 3px; | padding:5px; -moz-border-radius:0px 0px 3px 3px; | ||
+ | min-height:150px; | ||
{{{textstyle}}};"> | {{{textstyle}}};"> | ||
− | |||
{{{text}}} | {{{text}}} | ||
− | + | </div></includeonly><noinclude> | |
Vorlage zum leichten und einheitlichen Erstellen von flexibel parametrisierbaren Boxen. | Vorlage zum leichten und einheitlichen Erstellen von flexibel parametrisierbaren Boxen. | ||
Zeile 25: | Zeile 28: | ||
| style || CSS-Fragment für das Gesamtobjekt (optional, z.B. <code>float:right;width:200px;</code>) | | style || CSS-Fragment für das Gesamtobjekt (optional, z.B. <code>float:right;width:200px;</code>) | ||
|- | |- | ||
− | | bgcolor || Hintergrundfarbe (optional, default: # | + | | bgcolor || Hintergrundfarbe (optional, default: #f6fcfe) |
|- | |- | ||
| color || Rahmenfarbe und Titelzeile (optional, default: #136381) | | color || Rahmenfarbe und Titelzeile (optional, default: #136381) |
Aktuelle Version vom 5. November 2011, 18:19 Uhr
Vorlage zum leichten und einheitlichen Erstellen von flexibel parametrisierbaren Boxen.
Einschränkungen
- Keiner der Parameter darf das
|
-Zeichen (Pipe) enthalten, da dies als besonderes Zeichen zur Separierung der einzelnen Parameter voneinander fungiert. Diese Einschränkung bewirkt insbesondere, dass das Wiki-Markup zum Erstellen von Tabellen nicht funktioniert.
Vorlagenparameter
Parameter | Beschreibung |
---|---|
style | CSS-Fragment für das Gesamtobjekt (optional, z.B. float:right;width:200px; )
|
bgcolor | Hintergrundfarbe (optional, default: #f6fcfe) |
color | Rahmenfarbe und Titelzeile (optional, default: #136381) |
text | Boxinhalt |
textcolor | Textfarbe Boxinhalt (optional, default: black) |
textstyle | CSS-Fragment für den Boxinhalt (optional) |
title | Boxüberschrift |
titlecolor | Textfarbe der Titelzeile (optional, default: {{{bgcolor}}} wenn gesetzt, sonst white )
|
titlestyle | CSS-Fragment für Titelzeile (optional) |
Beispiel
{{Flexbox|bgcolor=#fffbf5|color=#f19000|title=Testbox 123|text= Lorem ipsum dolor sit amet, ... }}
Dies ergibt die folgende Box:
Testbox 123
Lorem ipsum dolor sit amet, ...
Quelltext mit Dank übernommen aus: allmende.stadtwiki.info