(Add more styling flexibility) Tag: 2017 source edit |
Imperialhare (talk | contribs) No edit summary Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<templatestyles src="ColoredBox/style.css"/> | <templatestyles src="ColoredBox/style.css"/> | ||
<div class="mw-tpl-colorbox {{{class|}}}" style=" | <div class="mw-tpl-colorbox {{{class|}}}" style="{{#if:{{{background-content-color|}}} | background-color: {{{background-content-color | #ffffff}}}; }} {{#if:{{{background-title-color|}}} | border-color:{{{background-title-color}}} | #eaecf0}} {{{colorbox-style|}}}"> | ||
{{#if:{{{background-content-color|}}} | background-color: {{{background-content-color | #ffffff}}}; }} | {{#if:{{{title|}}}|<div class="mw-tpl-colorbox-title" style="{{#if:{{{background-title-color|}}}|background-color:{{{background-title-color|#eaecf0}}};}}{{#if:{{{center-title|}}}|text-align:center|}}{{{colorbox-title-style|}}}"> | ||
{{#if:{{{background-title-color|}}} | border-color:{{{background-title-color}}} | #eaecf0}} | |||
{{{colorbox-style|}}}">{{#if:{{{title|}}}|<div class="mw-tpl-colorbox-title" style=" | |||
{{#if:{{{background-title-color|}}}|background-color:{{{background-title-color|#eaecf0}}};}} | |||
{{#if:{{{center-title|}}}|text-align:center|}} | |||
{{{colorbox-title-style|}}} | |||
"> | |||
{{#if:{{{icon|}}}|[[File:{{{icon}}}|20px|class=colorbox-title-icon|link=|alt=]] }} | {{#if:{{{icon|}}}|[[File:{{{icon}}}|20px|class=colorbox-title-icon|link=|alt=]] }} | ||
<strong style="{{#if:{{{title-color|}}}| color: {{{title-color|#000000}}}; }}"> | <strong style="{{#if:{{{title-color|}}}| color: {{{title-color|#000000}}}; }}"> |
Revision as of 20:04, 10 July 2022
{{{content}}}