Vorlage:BlueBox/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 BlueBox

Die Vorlage {{BlueBox}} erzeugt eine als Code formatierte Textbox mit blassblauem Hintergrund, ohne einen ohne einen neuen Absatz zu erzeugen. Dies wird durch <span style="display: inline-block"> erreicht. Durch display: inline-block ist es möglich, die Breite der Box anzugeben.

Parameter

x
NameBeschreibungStandardStatus
1angezeigter Textleeroptional
colTextfarbe CSS color Property#000optional
widthBoxbreite CSS width Property50emoptional
padRahmenabstände CSS padding Property0.1em 0.4emoptional
2Hintergrundfarbe CSS color Property#f0f0f0optional
stylezusätzlicher CSS-Styleleeroptional
fsizeSchriftgröße fontsize90%optional
tagHTML Tag Typspanoptional

Kopiervorlagen

{{BlueBox|1=|col=|width=|pad=|2=|style=|fsize=|tag=}}
{{BlueBox|1=|col=|width=|pad=|2=|style=|fsize=|tag=}}
{{BlueBox
|1=
|col=
|width=
|pad=
|2=
|style=
|fsize=
|tag=}}
{{BlueBox
|1=
|col=
|width=
|pad=
|2=
|style=
|fsize=
|tag=}}

Anwendung

{{BlueBox}}
ergibt als Wikitext expandiert:
<span style="font-size: 90%; font-family: &quot;Consolas&quot;, monospace; display: inline-block; background: #f0f0f0; color:black; padding: 0 0.4em; width: auto; " class="oneclick">Gallia est omnis divisa in partes tres, </span>
angewendet:
Gallia est omnis divisa in partes tres,
{{BlueBox|1=20190130.xlsm|2=#ffe0e0|pad=2em}}
ergibt als Wikitext expandiert:
<span style="font-size: 90%; font-family: &quot;Consolas&quot;, monospace; display: inline-block; background: #ffe0e0; color:black; padding: 2em; width: auto; " class="oneclick">20190130.xlsm</span>
angewendet:
20190130.xlsm
{{BlueBox|1=20190130.xlsm|2=transparent|pad=2em|tag=span}}
ergibt als Wikitext expandiert:
<span style="font-size: 90%; font-family: &quot;Consolas&quot;, monospace; display: inline-block; background: transparent; color:black; padding: 2em; width: auto; " class="oneclick">20190130.xlsm</span>
angewendet:
20190130.xlsm

Code

<includeonly> <onlyinclude><{{{tag|span}}} style="font-size: {{{fsize|90%}}}; font-family: &quot;Consolas&quot;, monospace; display: {{{display|inline-block}}}; background: {{{2|#f0f0f0}}}; color:{{{col|black}}}; padding: {{{pad|0 0.4em}}}; width: {{{width|auto}}}; {{{style|}}}" class="{{{class|oneclick}}}">{{{text|{{{1|{{Lorem|40}}}}}}}}</{{{tag|span}}}></onlyinclude></includeonly>{{Dokumentation}}