Template:Colored box: Difference between revisions
Appearance
en>Krinkle move title color to heading element, split style values over multiple lines for readability |
en>Krinkle revert my changes, except whitespace in code clean up |
||
Line 9: | Line 9: | ||
| background-color: {{{background-title-color|#eaecf0}}}; | | background-color: {{{background-title-color|#eaecf0}}}; | ||
}} | }} | ||
">{{#if:{{{icon|}}}|[[File:{{{icon}}}|20px|class=colorbox-title-icon|link=|alt=]] }}<strong style="{{#if: {{{title-color|}}} | color: {{{title-color|#000000}}}; }}">{{{title}}}</strong><!-- | |||
">{{#if:{{{icon|}}}|[[File:{{{icon}}}|20px|class=colorbox-title-icon|link=|alt=]] }}<strong>{{{title}}}</strong><!-- | |||
-->{{#if:{{{link|}}} | -->{{#if:{{{link|}}} | ||
|<div class="mw-tpl-colorbox-title-corner">[[{{{link}}}|<span style="{{#if: {{{link-color|{{{title-color|}}}}}} | color: {{{link-color|{{{title-color|}}}}}}; }}">{{{view-text|view}}}</span>]]</div> | |<div class="mw-tpl-colorbox-title-corner">[[{{{link}}}|<span style="{{#if: {{{link-color|{{{title-color|}}}}}} | color: {{{link-color|{{{title-color|}}}}}}; }}">{{{view-text|view}}}</span>]]</div> | ||
|{{#if:{{{link2|}}}|<div class="mw-tpl-colorbox-title-corner">[{{{link2}}} <span style="{{#if: {{{link-color|{{{title-color|}}}}}} | color: {{{link-color|{{{title-color|}}}}}}; }}">{{{view-text|view}}}</span>]</div>}} | |{{#if:{{{link2|}}} | ||
|<div class="mw-tpl-colorbox-title-corner">[{{{link2}}} <span style="{{#if: {{{link-color|{{{title-color|}}}}}} | color: {{{link-color|{{{title-color|}}}}}}; }}">{{{view-text|view}}}</span>]</div> | |||
}} | |||
}} | }} | ||
</div><!-- | </div><!-- |
Revision as of 18:27, 6 September 2023
{{{title}}}
{{{content}}}
Lua error in Module:Documentation at line 144: message: type error in message cfg.container (string expected, got nil).