Template:Ambox: Difference between revisions

Want an adless experience? Log in or Create an account.
no edit summary
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly><css>
<css>
table.ambox-header {
table.ambox-header {
   width: 100%;
   width: 80%;
   height: 100px
   height: 100px
   margin: 1em auto 1em auto;
   margin: 1em auto 1em auto;
   vertical-align: top;
   vertical-align: top;
  text-align: left;
}
}
td.ambox-header { width: 100px; }
td.ambox-header { width: 100px; }
table.ambox-inline {
table.ambox-inline {
   width: 50%;
   width: 40%;
   height: 42px;
   height: 50px;
   margin: 1em auto 1em auto;
   margin: 1em auto 1em auto;
   vertical-align: top;
   vertical-align: top;
  text-align: center;
}
}
td.ambox-inline { width: 42px; }
td.ambox-inline { width: 50px; }
</css>
</css><!--
{| class="ambox-{{{type}}}" style="border: 1px solid {{#if: {{{color|}}}|{{{color}}}|black}};"
 
|-  
 
{{#ifeq: {{{type|}}}|header
-->{| class="ambox-{{{type}}}" style="border: 1px solid {{#if: {{{color|}}}|{{{color}}}|black}};"
   |{{!}} width="5px" style="background: {{#if: {{{color|}}}|{{{color}}}|black}}" {{!}}}}
|- {{#ifeq: {{{type|}}}|header
   |{{n}}{{!}} width="5px" style="background: {{#if: {{{color|}}}|{{{color}}}|black}}" {{!}}}}
| class="ambox-{{{type}}}" | {{{image}}}
| class="ambox-{{{type}}}" | {{{image}}}
| {{#if: {{{header|}}}
| {{#if: {{{header|}}}
   | <div style="text-align: center;{{#if: {{{color|}}}| color: {{{color}}}}}">'''{{{header}}}'''</div><br>
   | <div style="color: {{#if: {{{color|}}}|{{{color}}}|black}}">'''{{{header}}}'''</div>
   }}{{{1}}}
   }}{{{1}}}
{{#ifeq: {{{type|}}}|inline
{{#ifeq: {{{type|}}}|inline