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 | <table class="metadata plainlinks" style="margin: -1px 10%; border: 1px solid #aaa; background: #fbfbfb; | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| speedy = margin: | | 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 | <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 | <td style="border: none; padding: 0.25em 0.5em; width: 100%; {{{textstyle|}}}">{{{text}}}</td> | ||
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| <td | | <td style="border: none; padding: 2px 0.8em 2px 0px; text-align: center;"> {{{imageright}}} </td> | ||
}} | }} | ||
</tr> | </tr> |