Aktuelle Version |
Dein Text |
Zeile 1: |
Zeile 1: |
− | <includeonly><div style="margin:5px; margin-left:0px; {{{style}}};"><div style="background-color:{{{color|#136381}}}; | + | <div>{{{Text}}}</div> |
− | text-align:left;
| |
− | color: {{{titlecolor|{{{bgcolor|white}}}}}};
| |
− | font-weight:bold; font-size:125%;
| |
− | -moz-border-radius:3px 3px 0px 0px; padding:3px; padding-left:5px; {{{titlestyle}}};">{{{title}}}</div>
| |
− | <div style="padding: 5px;
| |
− | border: 1px solid {{{color|#136381}}}; border-top-width:0px;
| |
− | color: {{{textcolor|black}}}; background-color:{{{bgcolor|#f6fcfe}}};
| |
− | padding:5px; -moz-border-radius:0px 0px 3px 3px;
| |
− | {{{textstyle}}};">
| |
− | {{{text}}} | |
− | </div></div></includeonly><noinclude> | |
− | Vorlage zum leichten und einheitlichen Erstellen von flexibel parametrisierbaren Boxen.
| |
− | | |
− | == Einschränkungen ==
| |
− | * Keiner der Parameter darf das '''<code><nowiki>|</nowiki></code>'''-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 ==
| |
− | {| class="wikitable"
| |
− | ! Parameter !! Beschreibung
| |
− | |-
| |
− | | style || CSS-Fragment für das Gesamtobjekt (optional, z.B. <code>float:right;width:200px;</code>)
| |
− | |-
| |
− | | 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: <code><nowiki>{{{bgcolor}}}</nowiki></code> wenn gesetzt, sonst <code>white</code>)
| |
− | |-
| |
− | | titlestyle || CSS-Fragment für Titelzeile (optional)
| |
− | |}
| |
− |
| |
− | == Beispiel ==
| |
− | <pre><nowiki>
| |
− | {{Flexbox|bgcolor=#fffbf5|color=#f19000|title=Testbox 123|text=
| |
− | Lorem ipsum dolor sit amet, ...
| |
− | }}
| |
− | </nowiki></pre>
| |
− | | |
− | Dies ergibt die folgende Box:
| |
− | {{Flexbox|bgcolor=#fffbf5|color=#f19000|title=Testbox 123|text=
| |
− | Lorem ipsum dolor sit amet, ...
| |
− | }}
| |
− | | |
− | [[Kategorie:Artikelvorlage]]
| |
− | </noinclude>
| |