Vorlage:Boxenlayout1: Unterschied zwischen den Versionen

Aus Xhodon
Wechseln zu: Navigation, Suche
K
 
(24 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
__NOTOC__
+
<includeonly>__NOTOC__
 
{| border="0" cellpadding="0" cellspacing="0" style="width:100%;"
 
{| border="0" cellpadding="0" cellspacing="0" style="width:100%;"
 
| colspan="2" style="padding-bottom:1em; vertical-align:top;" |
 
| colspan="2" style="padding-bottom:1em; vertical-align:top;" |
{| celltabbing="0" cellspacing="0" style="width:100%; border:1px solid #808080;"
+
{| celltabbing="0" cellspacing="0" style="width:100%; border:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}};"
! style="border-bottom:1px solid #808080; background-color:#FFCC99;" | Überschrift Kopfbereich
+
{{#if: {{{Titel_Kopf|}}} |
|-
+
! style="border-bottom:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}}; background-color:{{{Farbe_Titel|#{{FarbeTitelBox|FFCC99}}}}};" {{!}} {{{Titel_Kopf|&nbsp;}}}
 +
{{!-}}
 +
}}
 
| style="padding:0.5em 1em;" |
 
| style="padding:0.5em 1em;" |
<!----------- Kopfbereich ----------->
+
{{{Inhalt_Kopf|&nbsp;<br>}}}
Inhalt Kopfbereich<br><br><br><br><br><br>
+
<!----------------------------------->
+
 
|}
 
|}
 
|-
 
|-
| style="width:50%; padding-right:0.5em; vertical-align:top;" |
+
|
{| celltabbing="0" cellspacing="0" style="margin-bottom:1em; width:100%; border:1px solid #808080;"
+
<div style="width:49.5%; vertical-align:top; float:left;">
! style="border-bottom:1px solid #808080; background-color:#FFCC99;" | Überschrift linke Box 1
+
{| celltabbing="0" cellspacing="0" style="margin-bottom:1em; width:100%; border:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}};"
 +
! style="border-bottom:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}}; background-color:{{{Farbe_Titel|#{{FarbeTitelBox|FFCC99}}}}};" | {{{Titel_Links_1|&nbsp;}}}
 
|-
 
|-
 
| style="padding:0.5em 1em;" |
 
| style="padding:0.5em 1em;" |
<!-------- linke Spalte Box 1 -------->
+
{{{Inhalt_Links_1|&nbsp;<br>}}}
Inhalt linke Spalte Box 1<br><br><br><br><br><br><br><br>
+
|}{{#if: {{{Titel_Links_2|}}} |
<!----------------------------------->
+
{{(!}} celltabbing="0" cellspacing="0" style="margin-bottom:1em; width:100%; border:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}};"
|}
+
! style="border-bottom:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}}; background-color:{{{Farbe_Titel|#{{FarbeTitelBox|FFCC99}}}}};" {{!}} {{{Titel_Links_2|&nbsp;}}}
{| celltabbing="0" cellspacing="0" style="margin-bottom:1em; width:100%; border:1px solid #808080;"
+
{{!-}}
! style="border-bottom:1px solid #808080; background-color:#FFCC99;" | Überschrift linke Box 2
+
{{!}} style="padding:0.5em 1em;" {{!}}
 +
{{{Inhalt_Links_2|&nbsp;<br>}}}
 +
{{!)}}}}{{#if: {{{Titel_Links_3|}}} |
 +
{{(!}} celltabbing="0" cellspacing="0" style="margin-bottom:1em; width:100%; border:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}};"
 +
! style="border-bottom:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}}; background-color:{{{Farbe_Titel|#{{FarbeTitelBox|FFCC99}}}}};" {{!}} {{{Titel_Links_3|&nbsp;}}}
 +
{{!-}}
 +
{{!}} style="padding:0.5em 1em;" {{!}}
 +
{{{Inhalt_Links_3|&nbsp;<br>}}}
 +
{{!)}}}}</div>
 +
<div style="width:49.5%; vertical-align:top; float:right;">
 +
{| celltabbing="0" cellspacing="0" style="margin-bottom:1em; width:100%; border:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}};"
 +
! style="border-bottom:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}}; background-color:{{{Farbe_Titel|#{{FarbeTitelBox|FFCC99}}}}};" | {{{Titel_Rechts_1|&nbsp;}}}
 
|-
 
|-
 
| style="padding:0.5em 1em;" |
 
| style="padding:0.5em 1em;" |
<!-------- linke Spalte Box 2 -------->
+
{{{Inhalt_Rechts_1|&nbsp;<br>}}}
Inhalt linke Spalte Box 2<br><br><br><br><br><br>
+
|}{{#if: {{{Titel_Rechts_2|}}} |
<!----------------------------------->
+
{{(!}} celltabbing="0" cellspacing="0" style="margin-bottom:1em; width:100%; border:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}};"
|}
+
! style="border-bottom:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}}; background-color:{{{Farbe_Titel|#{{FarbeTitelBox|FFCC99}}}}};" {{!}} {{{Titel_Rechts_2|&nbsp;}}}
{| celltabbing="0" cellspacing="0" style="margin-bottom:1em; width:100%; border:1px solid #808080;"
+
{{!-}}
! style="border-bottom:1px solid #808080; background-color:#FFCC99;" | Überschrift linke Box 3
+
{{!}} style="padding:0.5em 1em;" {{!}}
|-
+
{{{Inhalt_Rechts_2|&nbsp;<br>}}}
| style="padding:0.5em 1em;" |
+
{{!)}}}}{{#if: {{{Titel_Rechts_3|}}} |
<!-------- linke Spalte Box 3 -------->
+
{{(!}} celltabbing="0" cellspacing="0" style="margin-bottom:1em; width:100%; border:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}};"
Inhalt linke Spalte Box 3<br><br><br><br>
+
! style="border-bottom:1px solid {{{Farbe_Rahmen|#{{FarbeRahmen|808080}}}}}; background-color:{{{Farbe_Titel|#{{FarbeTitelBox|FFCC99}}}}};" {{!}} {{{Titel_Rechts_3|&nbsp;}}}
<!----------------------------------->
+
{{!-}}
|}
+
{{!}} style="padding:0.5em 1em;" {{!}}
| style="width:50%; padding-left:0.5em; vertical-align:top;" |
+
{{{Inhalt_Rechts_3|&nbsp;<br>}}}
{| celltabbing="0" cellspacing="0" style="margin-bottom:1em; width:100%; border:1px solid #808080;"
+
{{!)}}}}</div>
! style="border-bottom:1px solid #808080; background-color:#FFCC99;" | Überschrift rechte Box 1
+
|}</includeonly><noinclude>
|-
+
== Beispiel ==
| style="padding:0.5em 1em;" |
+
{{Boxenlayout1
<!-------- rechte Spalte Box 1 ------->
+
|Farbe_Rahmen=#{{FarbeRahmen|808080}}
Inhalt rechte Spalte Box 1<br><br><br><br>
+
|Farbe_Titel=#{{FarbeTitelBox|FFCC99}}
<!----------------------------------->
+
 
|}
+
|Titel_Kopf=Titel_Kopf
{| celltabbing="0" cellspacing="0" style="margin-bottom:1em; width:100%; border:1px solid #808080;"
+
|Inhalt_Kopf=Inhalt_Kopf
! style="border-bottom:1px solid #808080; background-color:#FFCC99;" | Überschrift rechte Box 2
+
 
|-
+
|Titel_Links_1=Titel_Links_1
| style="padding:0.5em 1em;" |
+
|Inhalt_Links_1=Inhalt_Links_1
<!-------- rechte Spalte Box 2 ------>
+
 
Inhalt rechte Spalte Box 2<br><br><br><br><br><br>
+
|Titel_Links_2=Titel_Links_2
<!----------------------------------->
+
|Inhalt_Links_2=Inhalt_Links_2
|}
+
 
{| celltabbing="0" cellspacing="0" style="margin-bottom:1em; width:100%; border:1px solid #808080;"
+
|Titel_Links_3=Titel_Links_3
! style="border-bottom:1px solid #808080; background-color:#FFCC99;" | Überschrift rechte Box 3
+
|Inhalt_Links_3=Inhalt_Links_3
|-
+
 
| style="padding:0.5em 1em;" |
+
|Titel_Rechts_1=Titel_Rechts_1
<!-------- rechte Spalte Box 3 -------->
+
|Inhalt_Rechts_1=Inhalt_Rechts_1
Inhalt rechte Spalte Box 3<br><br><br><br><br><br><br><br>
+
 
<!----------------------------------->
+
|Titel_Rechts_2=Titel_Rechts_2
|}
+
|Inhalt_Rechts_2=Inhalt_Rechts_2
|}
+
 
 +
|Titel_Rechts_3=Titel_Rechts_3
 +
|Inhalt_Rechts_3=Inhalt_Rechts_3
 +
}}
 +
 
 +
== Verwendung ==
 +
*Nur wenn ''Titel_Kopf'' angegeben ist, erhält der Kopfbereich eine farbige Titelzeile.
 +
*Es gibt immer in jeder Spalte mindestens eine Box. Weitere Boxen darunter werden nur angezeigt, wenn Titel angegeben werden.
 +
*Sind keine Farben angegeben, werden die Standardfarben ''#{{FarbeRahmen|808080}}'' und ''#{{FarbeTitelBox|FFCC99}}'' verwendet.
 +
*Wenn Tabellen als Parameter übergeben werden sollen, so müssen diese mit den Ersatzkonstruktionen <nowiki>{{!}}</nowiki> u.ä. statt der pipes <nowiki>|</nowiki> gebildet werden.
 +
 
 +
== Vorlage ==
 +
<pre>{{Boxenlayout1
 +
|Farbe_Rahmen=#{{FarbeRahmen|808080}}
 +
|Farbe_Titel=#{{FarbeTitelBox|FFCC99}}
 +
 +
|Titel_Kopf=
 +
|Inhalt_Kopf=
 +
 +
|Titel_Links_1=
 +
|Inhalt_Links_1=
 +
 +
|Titel_Links_2=
 +
|Inhalt_Links_2=
 +
 +
|Titel_Links_3=
 +
|Inhalt_Links_3=
 +
 +
|Titel_Rechts_1=
 +
|Inhalt_Rechts_1=
 +
 +
|Titel_Rechts_2=
 +
|Inhalt_Rechts_2=
 +
 +
|Titel_Rechts_3=
 +
|Inhalt_Rechts_3=
 +
}}</pre>
 +
 
 +
[[en:Template:Boxlayout1]]
  
 
[[Kategorie:Vorlage|Boxenlayout1]]
 
[[Kategorie:Vorlage|Boxenlayout1]]
 +
</noinclude>

Aktuelle Version vom 23. Mai 2009, 15:46 Uhr

Beispiel

Titel_Kopf

Inhalt_Kopf

Titel_Links_1

Inhalt_Links_1

Titel_Links_2

Inhalt_Links_2

Titel_Links_3

Inhalt_Links_3

Titel_Rechts_1

Inhalt_Rechts_1

Titel_Rechts_2

Inhalt_Rechts_2

Titel_Rechts_3

Inhalt_Rechts_3

Verwendung

  • Nur wenn Titel_Kopf angegeben ist, erhält der Kopfbereich eine farbige Titelzeile.
  • Es gibt immer in jeder Spalte mindestens eine Box. Weitere Boxen darunter werden nur angezeigt, wenn Titel angegeben werden.
  • Sind keine Farben angegeben, werden die Standardfarben #808080 und #F3DCA8 verwendet.
  • Wenn Tabellen als Parameter übergeben werden sollen, so müssen diese mit den Ersatzkonstruktionen {{!}} u.ä. statt der pipes | gebildet werden.

Vorlage

{{Boxenlayout1
|Farbe_Rahmen=#{{FarbeRahmen|808080}}
|Farbe_Titel=#{{FarbeTitelBox|FFCC99}}
 
|Titel_Kopf=
|Inhalt_Kopf=
 
|Titel_Links_1=
|Inhalt_Links_1=
 
|Titel_Links_2=
|Inhalt_Links_2=
 
|Titel_Links_3=
|Inhalt_Links_3=
 
|Titel_Rechts_1=
|Inhalt_Rechts_1=
 
|Titel_Rechts_2=
|Inhalt_Rechts_2=
 
|Titel_Rechts_3=
|Inhalt_Rechts_3=
}}