Template:Message Box: Difference between revisions
(quick and dirty changes to make the template work) |
(added revert-layer defaults to border colors) |
||
Line 1: | Line 1: | ||
<div {{#if:{{{class}}}|class="{{{class|messagebox}}}"}} style="width: {{#if:{{{width|}}}|{{{width}}}|80%}}; {{#if:{{{Background color|}}}|background-color: {{{Background color}}};}} border-top: 1px solid {{#if:{{{Border color|}}}|{{{Border color}}}}}; border-bottom: 1px solid {{#if:{{{Border color|}}}|{{{Border color}}}}}; border-right: 1px solid {{#if:{{{Border color|}}}|{{{Border color}}}}}; border-left: 12px solid {{#if:{{{Flag color|}}}|{{{Flag color}}}|#aaaaaa}}; margin: 0.5em auto 0.5em;"> | <div {{#if:{{{class}}}|class="{{{class|messagebox}}}"}} style="width: {{#if:{{{width|}}}|{{{width}}}|80%}}; {{#if:{{{Background color|}}}|background-color: {{{Background color}}};}} | ||
border-top: 1px solid; border-top-color: {{#if:{{{Border color|}}}|{{{Border color}}}|revert-layer}}; | |||
border-bottom: 1px solid; border-bottom-color: {{#if:{{{Border color|}}}|{{{Border color}}}|revert-layer}}; | |||
border-right: 1px solid; border-right-color: {{#if:{{{Border color|}}}|{{{Border color}}}|revert-layer}}; | |||
border-left: 12px solid {{#if:{{{Flag color|}}}|{{{Flag color}}}|#aaaaaa}}; margin: 0.5em auto 0.5em;"> | |||
{| | {| | ||
{{#if:{{{Image|}}}|{{!}}style="width:93px; text-align:center; vertical-align:middle; padding-top:1px;padding-bottom:7px" {{!}} {{{Image}}} }} | {{#if:{{{Image|}}}|{{!}}style="width:93px; text-align:center; vertical-align:middle; padding-top:1px;padding-bottom:7px" {{!}} {{{Image}}} }} |