Vorlage:Infobox/doc

Zur Navigation springen Zur Suche springen
Bearbeiten · Raw · Versionen · Cache leeren · Messages · Seiteninformation · Vorlage bearbeiten · Seiteninformation Vorlage
Diese Seite ist die Dokumentations-Unterseite der Vorlage Infobox

Die Vorlage {{Infobox}} erzeugt eine farblich umrahmte Box mit abgerundeten Ecken und einer Überschrift in der dazu inversen Farbe. Standardmäßig wird die Überschrift als Header Ebene 2 festgelegt. Die Festlegung als Überschrift kann mit ebene= unterdrückt werden, wenn die Überschrift fehlt, wird die Angabe der Ebene grundsätzlich ignoriert.

Wenn der Text fehlt, wird eine abgerundete Box mit der Hintergrundfarbe der Rahmenfarbe erzeugt, in diesem Fall wird die Eingabe von bwidth=auto; display:inline-block empfohlen, dies bewirkt, dass die Breite der Box automatisch an den Text angepasst wird. Die Ebene wird in diesem Fall grundsätzlich unterdrückt, d.h. es wird keine unsichtbare Überschrift erzeugt.

Die Voreinstellungen der Farbwerte für Rahmen und Text werden von der Vorlage {{Wico}} erzeugt.

Parameter

x
NameBeschreibungStandardStatus
bwidthBoxbreite CSS width45%optional
bfarbeRahmen- und Hintergrundfarbe der Überschriftleeroptional
{{Wico}} Themenfarbe des Wikis
bradiusRadius der Ecken CSS border-radius1emoptional
2Überschrift, auch: titelleeroptional
titelfarbeSchriftfarbe der Überschrift CSS color#fffoptional
tfarbeTextfarbe in der Box{{Wico}}optional
1 InfotextText in der Infobox{{Lorem}} {{Lorem}}optional
ebeneEbene der Überschrift, nur relevant wenn titel angegeben wird2optional
wenn ebene=/ wird keine Überschrift erzeugt
padInnenabstand der Überschrift vom Rahmen CSS padding0.5em 1emoptional
bdickeDicke des Rahmens CSS border-width2pxoptional
bstyleRahmenart, z.B. dotted, ridge, CSS border-stylesolidoptional
textpadInnenabstand des Textes vom Rahmen0.2em 1emoptional
marginAußenabstand CSS margin0.5emoptional

Kopiervorlagen

{{Infobox|bwidth=|bfarbe=|bradius=|2=|titelfarbe=|tfarbe=|1 Infotext=|ebene=|pad=|bdicke=|bstyle=|textpad=|margin=}}
{{Infobox|bwidth=|bfarbe=|bradius=|2=|titelfarbe=|tfarbe=|1 Infotext=|ebene=|pad=|bdicke=|bstyle=|textpad=|margin=}}
{{Infobox
|bwidth=
|bfarbe=
|bradius=
|2=
|titelfarbe=
|tfarbe=
|1 Infotext=
|ebene=
|pad=
|bdicke=
|bstyle=
|textpad=
|margin=}}
{{Infobox
|bwidth=
|bfarbe=
|bradius=
|2=
|titelfarbe=
|tfarbe=
|1 Infotext=
|ebene=
|pad=
|bdicke=
|bstyle=
|textpad=
|margin=}}

Anwendung

{{Infobox}}
ergibt als Wikitext expandiert:
<div style="background-color: transparent; border: 1px solid rgb(145,189,91); width: 75%; padding: 0; border-radius: 0.5em; overflow: hidden; margin: 0 1em 1em 0; "> </div>
angewendet:
{{Infobox|titel=Dies ist die Überschrift einer Infobox|Infotext=Gallia est omnis divisa in partes tres| quarum unam incolunt Belgae| aliam Aquitani| tertiam qui ips}}
ergibt als Wikitext expandiert:
<div style="background-color: transparent; border: 1px solid rgb(145,189,91); width: 75%; padding: 0; border-radius: 1em; overflow: hidden; margin: 0 1em 1em 0; "><div class="fweiss" style="background-color: rgb(145,189,91); color: #fff; font-weight: bold; padding: 0.2em 1em; "> aliam Aquitani</div>

<div style="padding:0.2em 1em; color:#000; ">

Gallia est omnis divisa in partes tres</div></div>
angewendet:
aliam Aquitani
Gallia est omnis divisa in partes tres

Code

<includeonly>

<onlyinclude><div style="background-color: {{{background-color|{{{bgcolor|transparent}}}}}}; border: {{{bdicke|1px}}} {{{bstyle|solid}}} {{{bfarbe|{{Wico}}}}}; width: {{{bwidth|75%}}}; padding: {{{opad|0}}}; border-radius: {{{bradius|{{#if:{{{2|{{{titel|}}}}}}|1em|0.5em}}}}}; overflow: {{{overflow|hidden}}}; margin: {{{margin|0 1em 1em 0}}}; ">{{#if:{{{2|{{{titel|}}}}}}|<div class="fweiss" style="background-color: {{{bfarbe|{{Wico}}}}}; color: {{{titelfarbe|#fff}}}; font-weight: bold; padding: {{{pad|0.2em 1em}}}; ">{{{2|{{{titel}}}}}}</div>}} {{#if:{{{Infotext|{{{1|}}}}}}|<div style="padding:{{{textpad|0.2em 1em}}}; color:{{{tfarbe|#000}}}; {{{style|}}}"> {{{Infotext|{{{1}}}}}}</div>}}</div></onlyinclude> </includeonly>

{{Dokumentation}}