Vorlage:Colored box: Unterschied zwischen den Versionen

Aus InDiGuD-Wiki
Zur Navigation springen Zur Suche springen
K (1 Version importiert)
Keine Bearbeitungszusammenfassung
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
<div class="mw-tpl-colorbox {{{class|}}}" style="
<div style="box-shadow: 0 0 0.2em #999999; border-radius: 0.2em; margin: 0.5em 0.5em 1em 0.5em; background: {{{background-content-color|#f8f9fa}}}; {{{style|}}};">
{{#if: {{{background-content-color|}}}
  <!-- CSS for icon and background -->
| background-color: {{{background-content-color|#fff}}};
  <div style="background: {{{background-title-color|#eaecf0}}}; border-radius: 0.2em 0.2em 0 0; padding: 0.5em 1em 0.5em 1em;; display: flex; align-items: center;">
}}
    {{#if:{{{icon|}}}|<span style="opacity: 0.8; display: flex; align-items: center; margin-right: 0.5em; line-height: 20px;">[[File:{{{icon}}}|20px|left|link=|alt=]]</span>&#32;}}
{{{style|}}}
    <div style="color: {{{title-color|#000000}}}; font-weight: bold; line-height: 20px;">{{{title}}}</div>
"><templatestyles src="Colored box/style.css"/><!--
    <!-- Link div -->
--><div class="mw-tpl-colorbox-title {{#if: {{{title-link|}}} | mw-tpl-colorbox-title--linked }}" style="
    {{#if:{{{link|}}}|<div style="float: right; font-size: 0.7em;">[[{{{link}}}|<span style="color: {{{link-color|{{{title-color|#000000}}}}}};">{{{Link-text|{{{link-text|Link}}}}}}</span>]]</div>}}
{{#if: {{{background-title-color|}}}
   </div>
| background-color: {{{background-title-color|#eaecf0}}};
  <!-- CSS for the content -->
}}
  <div style="padding: 1em; padding-left: 1em;">
{{#if: {{{title-color|}}} | color: {{{title-color|#000000}}}; }}"
    {{{content}}}{{clr}}
">{{#if: {{{icon|}}} | [[File:{{{icon}}}|20px|class=mw-tpl-colorbox-title-icon|link={{{title-link|}}}|alt=]]&#32; }}<!--
   </div>
-->{{#if: {{{title-link|}}} | [[{{{title-link|}}}|<strong>{{{title}}}</strong>]] | <strong>{{{title}}}</strong> }}<!--
-->{{#if: {{{view-link|{{{link|}}}}}}
|<div class="mw-tpl-colorbox-title-corner">[[{{{view-link|{{{link|}}}}}}|<span style="{{#if: {{{link-color|{{{title-color|}}}}}} | color: {{{link-color|{{{title-color|}}}}}}; }}">{{{view-text|view}}}</span>]]</div>
|{{#if: {{{view-extlink|{{{link2|}}}}}}
   |<div class="mw-tpl-colorbox-title-corner">[{{{view-extlink|{{{link2|}}}}}} <span style="{{#if: {{{link-color|{{{title-color|}}}}}} | color: {{{link-color|{{{title-color|}}}}}}; }}">{{{view-text|view}}}</span>]</div>
   }}
}}
</div><!--
--><div class="mw-tpl-colorbox-content">
{{{content}}}
</div>
</div>
</div><noinclude>
<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Aktuelle Version vom 2. März 2024, 19:19 Uhr

   {{#if:|[[File:{{{icon}}}|20px|left|link=|alt=]] }}
{{{title}}}
{{#if:|
[[{{{link}}}|Link]]
}}
   {{{content}}}Vorlage:Clr

Vorlage:Documentation