Vorlage:Farbbox: Unterschied zwischen den Versionen

Aus Open Source Ecology - Germany
Zur Navigation springen Zur Suche springen
(padding:0)
(Abhängigkeit {{Trim}} entfernt)
 
Zeile 1: Zeile 1:
<includeonly><span style="background-color:{{Trim|{{#if: {{{HG|}}}|{{{HG}}}|{{{2|white}}}<!-- if -->}}<!-- trim -->}};color:{{Trim|{{#if: {{{VG|}}}|{{{VG}}}|{{{3|black}}}<!-- if -->}}<!-- trim -->}};padding-top:0px;padding-bottom:0px;padding-left:0.5em;padding-right:0.5em;white-space:nowrap;display:inline-block;{{{style|}}}">{{Trim|{{#if:{{{text|}}}{{{Text|}}}|{{{text|}}}{{{Text|}}}|{{{1|}}}<!-- if -->}}<!-- trim -->}}</span></includeonly><noinclude>
+
<includeonly><span style="background-color:{{#if:immer-leerzeichen-entfernen|{{#if: {{{HG|}}}|{{{HG}}}|{{{2|white}}}<!-- if -->}}<!-- trim -->}};color:{{#if:immer-leerzeichen-entfernen|{{#if: {{{VG|}}}|{{{VG}}}|{{{3|black}}}<!-- if -->}}<!-- trim -->}};padding-top:0px;padding-bottom:0px;padding-left:0.5em;padding-right:0.5em;white-space:nowrap;display:inline-block;{{{style|}}}">{{#if:immer-leerzeichen-entfernen|{{#if:{{{text|}}}{{{Text|}}}|{{{text|}}}{{{Text|}}}|{{{1|}}}<!-- if -->}}<!-- trim -->}}</span></includeonly><noinclude>
 
  <nowiki>{{Farbbox | mein Text | red}}</nowiki> {{Farbbox | mein Text | red}}
 
  <nowiki>{{Farbbox | mein Text | red}}</nowiki> {{Farbbox | mein Text | red}}
 
  <nowiki>{{Farbbox | Text = mein Text | HG = red}}</nowiki> {{Farbbox | Text = mein Text | HG = red }}
 
  <nowiki>{{Farbbox | Text = mein Text | HG = red}}</nowiki> {{Farbbox | Text = mein Text | HG = red }}
Zeile 80: Zeile 80:
  
 
* [[Vorlage: Farbentext]]
 
* [[Vorlage: Farbentext]]
* [[Vorlage:Trim]]
+
 
  
 
[[Kategorie:Formatierung]]
 
[[Kategorie:Formatierung]]
 
</noinclude>
 
</noinclude>

Aktuelle Version vom 15. April 2024, 13:39 Uhr

{{Farbbox | mein Text | red}} mein Text
{{Farbbox | Text = mein Text | HG = red}} mein Text
{{Farbbox | Text = mein Text | HG = yellow | VG = blue}} mein Text
{{Farbbox | mein Text | orange | blue}} mein Text
{{Farbbox | mein Text | orange | style=border-radius: 5px;-moz-border-radius: 5px;}} mein Text 
{{Farbbox | mein Text | orange | style=padding:0;}} mein Text 

Gleiches als:

{{Farbentext | mein Text | red}} mein Text
{{Farbentext | Text = mein Text | HG = red}} mein Text
{{Farbentext | Text = mein Text | HG = yellow | VG = blue}} mein Text
{{Farbentext | mein Text | orange | blue}} mein Text
{{Farbentext | mein Text | orange | style=border-radius: 5px;-moz-border-radius: 5px;}} mein Text 
{{Farbentext | mein Text | orange | style=padding:0;}} mein Text 

Erläuterungen: VG = Vordergrund/Textfarbe, HG = Hintergrundfarbe. Siehe auch Vorlage: Textfarbe.

Beispielfarben des Tango Desktop Projektes
Beispiel Wiki-Code
Butter 1 {{Farbentext | Text | #FCE94F }}
Butter 2 {{Farbentext | Text | #EDD400 }}
Butter 3 {{Farbentext | Text | #C4A000 }}
Chameleon 1 {{Farbentext | Text | #8AE234 }}
Chameleon 2 {{Farbentext | Text | #73D216 }}
Chameleon 3 {{Farbentext | Text | #4E9A06 }}
Orange 1 {{Farbentext | Text | #FCAF3E }}
Orange 2 {{Farbentext | Text | #F57900 }}
Orange 3 {{Farbentext | Text | #CE5C00 }}
Sky Blue 1 {{Farbentext | Text | #729FCF }}
Sky Blue 2 {{Farbentext | Text | #3465A4 }}
Sky Blue 3 {{Farbentext | Text | #204A87 | #EEEEEC }}
Plum 1 {{Farbentext | Text | #AD7FA8 }}
Plum 2 {{Farbentext | Text | #75507B }}
Plum 3 {{Farbentext | Text | #5C3566 | #EEEEEC }}
Chocolate 1 {{Farbentext | Text | #E9B96E }}
Chocolate 2 {{Farbentext | Text | #C17D11 }}
Chocolate 3 {{Farbentext | Text | #8F5902 }}
Scarlet Red 1 {{Farbentext | Text | #EF2929 }}
Scarlet Red 2 {{Farbentext | Text | #CC0000 }}
Scarlet Red 3 {{Farbentext | Text | #A40000 | #E9B96E}}
Aluminium 1 {{Farbentext | Text | #EEEEEC }}
Aluminium 2 {{Farbentext | Text | #D3D7CF }}
Aluminium 3 {{Farbentext | Text | #BABDB6 }}
Aluminium 4 {{Farbentext | Text | #888A85 }}
Aluminium 5 {{Farbentext | Text | #555753 }}
Aluminium 6 {{Farbentext | Text | #2E3436 | #EEEEEC }}

Abhängigkeiten