Template:Cmbox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg
Added {{pp-semi-template|small=yes}}.
meta>Davidgothberg
New version from the /sandbox. No more double borders in several browsers. Allows large right side images. Does not use the ambox classes at all anymore.
Line 1: Line 1:
<table class="metadata plainlinks ambox" style="margin: 0px 10%; border: 1px solid #aaa;  
<table class="metadata plainlinks" style="margin: -1px 10%; border: 1px solid #aaa; background: #fbfbfb;  
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
   | speedy    = margin: 3px 10%; border: 4px solid #b22222; background: #FFDBDB;
   | speedy    = margin: 1px 10%; border: 4px solid #b22222; background: #FFDBDB;
   | delete    = background: #FFDBDB;
   | delete    = background: #FFDBDB;
   | content    = background: #FFE7CE;
   | content    = background: #FFE7CE;
Line 11: Line 11:
}} {{{style|}}}">
}} {{{style|}}}">
<tr>
<tr>
<td class="ambox-image">
<td style="border: none; padding: 2px 0px 2px 0.5em; text-align: center;">
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
   | <!-- No image cell. Empty cell necessary for text cell to have 100% width -->
   | <!-- No image cell. Empty cell necessary for text cell to have 100% width -->
Line 26: Line 26:
   }}</div>
   }}</div>
}}</td>
}}</td>
<td class="ambox-text" style="{{{textstyle|}}}">{{{text}}}</td>
<td style="border: none; padding: 0.25em 0.5em; width: 100%; {{{textstyle|}}}">{{{text}}}</td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
   | <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
   | <td style="border: none; padding: 2px 0.8em 2px 0px; text-align: center;"> {{{imageright}}} </td>
}}
}}
</tr>
</tr>

Revision as of 00:27, 9 May 2008

Template:Pp-semi-template