Vorlage:Flexbalken: Unterschied zwischen den Versionen

K
keine Bearbeitungszusammenfassung
K
K
Zeile 1: Zeile 1:
<includeonly><div style="margin:5px; margin-left:0px; {{{style}}};  
<includeonly><div style="margin:5px; margin-left:0px; {{{style}}};  
     background-color:{{{color|#136381}}};  
     background-color:{{{color|#0084BC}}};  
     text-align:left;  
     text-align:left;  
     color: {{{textcolor|{{{bgcolor|white}}}}}};
     color: {{{textcolor|white}}};
     font-weight:bold; font-size:125%;  
     font-weight:bold; font-size:125%;  
     -moz-border-radius:3px 3px 3px 3px; padding:3px; padding-left:6px; {{{textstyle}}};">{{{text}}}</div>
     -moz-border-radius:3px 3px 3px 3px; padding:3px; padding-left:6px; {{{textstyle}}};">{{{text}}}</div>
Zeile 17: Zeile 17:
  | 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: #f6fcfe)
  | color || Balkenfarbe (optional, default: #136381)
  |-
  |-
  | color || Titelzeile (optional, default: #136381)
  | text || Balkeninhalt / Text
  |-
  |-
  | text || Boxinhalt
  | textcolor || Textfarbe der Titelzeile (optional, default: <code><nowiki>{{{bgcolor}}}</nowiki></code> wenn gesetzt, sonst <code>white</code>)
  |-
  |-
  | titlecolor || Textfarbe der Titelzeile (optional, default: <code><nowiki>{{{bgcolor}}}</nowiki></code> wenn gesetzt, sonst <code>white</code>)
  | textstyle || CSS-Fragment für Titelzeile (optional)
|-
| titlestyle || CSS-Fragment für Titelzeile (optional)
  |}
  |}
   
   
== Beispiel ==
== Beispiel ==
{{Flexbalken|title=Testbox default
1. Standard
}}
{{Flexbalken|text=Testbox default}}
<pre><nowiki>
2. modifiziert:
{{Flexbalken|bgcolor=#fffbf5|color=#f19000|title=Testbox 123
<pre><nowiki>{{Flexbalken|color=#f19000|text=Testbox 123}}
}}
</nowiki></pre>
</nowiki></pre>
 
Ergibt folgenden Balken:
Dies ergibt die folgende Box:
{{Flexbalken|color=#f19000|text=Testbox 123}}
{{Flexbalken|color=#f19000|text=Testbox 123
}}




[[Kategorie:Vorlage für technische Aufgaben|{{PAGENAME}}]]
[[Kategorie:Vorlage für technische Aufgaben|{{PAGENAME}}]]
</noinclude>
</noinclude>