Template:Cmbox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg
(Removed "metadata" class, since that stops printing but cmboxes should be printed. See Template talk:Imbox#Metadata class.)
meta>Davidgothberg
(Changing to using the cmbox CSS classes in MediaWiki:Common.css. Their 30 day caching time has passed. (Tested in /sandbox.))
Line 1: Line 1:
<table class="plainlinks" style="margin: -1px 10%; border: 1px solid #aaa; background: #fbfbfb;
<table class="plainlinks cmbox
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
| speedy    = margin: 1px 10%; border: 4px solid #b22222; background: #FFDBDB;
| speedy    = cmbox-speedy
| delete    = background: #FFDBDB;
| delete    = cmbox-delete
| content    = background: #FFE7CE;
| content    = cmbox-content
| style      = background: #FFF9DB;
| style      = cmbox-style
| move      = background: #F1D0FF;
| move      = cmbox-move
| protection = background: #EFEFE1;
| protection = cmbox-protection
| notice          <!-- notice = default -->
| notice          <!-- notice = default -->
| #default  = background: #DFE8FF;
| #default  = cmbox-notice
}} {{{style|}}}">
}}" style="{{{style|}}}">
<tr>
<tr>
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| <td style="border: none; padding: 2px 0px 2px 0.5em; text-align: center;"><div style="width: 52px;">
| <td class="cmbox-image"><div style="width: 52px;">
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
Line 28: Line 28:
   }}</div></td>
   }}</div></td>
}}
}}
<td style="border: none; padding: 0.25em 0.5em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
<td class="cmbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| <td style="border: none; padding: 2px 0.8em 2px 0px; text-align: center;"> {{{imageright}}} </td>
| <td class="cmbox-imageright"> {{{imageright}}} </td>
}}
}}
</tr>
</tr>

Revision as of 13:37, 17 June 2008