Vorlage:Flexbalken: Unterschied zwischen den Versionen

K
keine Bearbeitungszusammenfassung
K
K
 
(13 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
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|#009D30}}};  
     background-color:{{{ background-color|#0085BD}}};
     text-align:left;  
    border: 1px solid {{{border-color|#0085BD}}};  
     color: {{{textcolor|white}}};
     text-align:{{{ausrichtung|left}}};  
     color:{{{textcolor|white}}};
     font-weight:bold;  
     font-weight:bold;  
     font-size:{{{font-size|125%}}};  
     font-size:{{{font-size|125%}}};  
Zeile 18: Zeile 19:
  | 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>)
  |-
  |-
  | color || Balkenfarbe (optional, default: #136381)
  | background-color || Balkenfarbe (optional, default: #0085BD)
  |-
  |-
  | text || Balkeninhalt / Text
  | border-color || Randfarbe (optional, default: #0085BD)
  |-
  |-
  | textcolor || Textfarbe der Titelzeile (optional, default: <code><nowiki>{{{bgcolor}}}</nowiki></code> wenn gesetzt, sonst <code>white</code>)
  | text || Text
  |-
  |-
  | textstyle || CSS-Fragment für Titelzeile (optional)
| textcolor || Textfarbe (optional, default: white)
|-
| font-size || Schriftgröße (optional, default: 125%)
|-
| ausrichtung || Textausrichtung (optional, default: left)
|-
  | textstyle || CSS-Fragment für Text (optional)
  |}
  |}
 
== Beispiel ==
== Beispiel ==
1. Standard
1. Standard
{{Flexbalken|text=Testbalken default 1}}
{{Flexbalken|text=Testbalken default 1}}
2. modifiziert:
2. modifiziert:
<pre><nowiki>{{Flexbalken|color=#f19000|text=Testbox 1234}}
<pre><nowiki>{{Flexbalken|background-color=#E0FFFF|textcolor=black|font-size=80%|ausrichtung=right|text=Testbalken 1234}}
</nowiki></pre>
</nowiki></pre>
Ergibt folgenden Balken:
Ergibt folgenden Balken:
{{Flexbalken|color=#D0A128|font-size=60%|text=Testbalken 1234}}
{{Flexbalken|background-color=#E0FFFF|textcolor=black|font-size=80%|ausrichtung=right|text=Testbalken 1234}}




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