Vorlage:Flexbox: Unterschied zwischen den Versionen

Aus dem Rhein-Neckar-Wiki
Zur Navigation springen Zur Suche springen
K (noch etwas tweaking...)
K (Vorlage erweitert um optionale Parameter ''textstyle'' und ''titlestyle'', beide sind per default ungesetzt.)
Zeile 3: Zeile 3:
     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:2px;">{{{title}}}</div>
     -moz-border-radius:3px 3px 0px 0px; padding:2px; {{{titlestyle}}};">{{{title}}}</div>
<div style="padding: 5px;  
<div style="padding: 5px;  
     border: 1px solid {{{color|#136381}}}; border-top-width:0px;  
     border: 1px solid {{{color|#136381}}}; border-top-width:0px;  
     color: {{{textcolor|black}}};  
     color: {{{textcolor|black}}};  
     -moz-border-radius:0px 0px 3px 3px;
     -moz-border-radius:0px 0px 3px 3px;
     background-color:{{{bgcolor|#f6fcfe}}}">
     background-color:{{{bgcolor|#f6fcfe}}} {{{textstyle}}}">
{{{text}}}
{{{text}}}
</div></div></includeonly><noinclude>
</div></div></includeonly><noinclude>
Zeile 17: Zeile 17:
  ! Parameter !! Beschreibung  
  ! Parameter !! Beschreibung  
  |-
  |-
  | style || CSS-Fragment (optional)
  | style || CSS-Fragment für das Gesamtobjekt (optional, z.B. <code>float:right;width:200px;</code>)
  |-
  |-
  | bgcolor || Hintergrundfarbe (optional, default: #f6fcfe)
  | bgcolor || Hintergrundfarbe (optional, default: #f6fcfe)
Zeile 25: Zeile 25:
  | text || Boxinhalt
  | text || Boxinhalt
  |-
  |-
  | textcolor || Textfarbe innerhalb der Box (optional, default: black)
  | textcolor || Textfarbe Boxinhalt (optional, default: black)
|-
| textstyle || CSS-Fragment für den Boxinhalt (optional)
  |-
  |-
  | title || Boxüberschrift  
  | title || Boxüberschrift  
  |-
  |-
  | titlecolor || Textfarbe der Titelzeile (optional, default: bgcolor wenn gesetzt oder white)
  | titlecolor || Textfarbe der Titelzeile (optional, default: <code><nowiki>{{{bgcolor}}}</nowiki></code> wenn gesetzt, sonst <code>white</code>)
|-
| titlestyle || CSS-Fragment für Titelzeile (optional)
  |}
  |}
   
   

Version vom 28. März 2008, 07:42 Uhr

Vorlage zum leichten und einheitlichen Erstellen von flexibel parametrisierbaren Boxen.

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, ...