Template:Cmbox: ke revisions ke biich ke antar

Content deleted Content added
imported>Davidgothberg
Removed "metadata" class, since that stops printing but cmboxes should be printed. See Template talk:Imbox#Metadata class.
imported>Davidgothberg
Changing to using the cmbox CSS classes in MediaWiki:Common.css. Their 30 day caching time has passed. (Tested in /sandbox.)
Rekha 1:
<table class="plainlinks" style="margin: -1px 10%; border: 1px solid #aaa; background: #fbfbfb;cmbox
{{#switch:{{{type|}}}
| speedy = cmbox-speedy
| speedy = margin: 1px 10%; border: 4px solid #b22222; background: #FFDBDB;
| delete = background: #FFDBDB;cmbox-delete
| content = background: #FFE7CE;cmbox-content
| style = background: #FFF9DB;cmbox-style
| move = background: #F1D0FF;cmbox-move
| protection = background: #EFEFE1;cmbox-protection
| notice <!-- notice = default -->
| #default = background: #DFE8FF;cmbox-notice
}}" style="{{{style|}}}">
<tr>
{{#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>
| <td styleclass="border: none; padding: 2px 0px 2px 0.5em; textcmbox-align: center;image"><div style="width: 52px;">
{{#if:{{{image|}}}
| {{{image}}}
Rekha 28:
}}</div></td>
}}
<td class="cmbox-text" style="border: none; padding: 0.25em 0.5em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td styleclass="border: none; padding: 2px 0.8em 2px 0px; textcmbox-align: center;imageright"> {{{imageright}}} </td>
}}
</tr>