ઢાંચો:Tmbox/core: આવૃત્તિઓ વચ્ચેનો તફાવત

દિશાશોધન પર જાઓ શોધ પર જાઓ
adding classes now so we can set custom CSS without waiting for cache time to expire
imported>Davidgothberg
(Added support for "imageright=none" with same meaning as "imageright=", thus making "smallimageright=none" handling simpler and more logical. And adding {{documentation}}.)
(adding classes now so we can set custom CSS without waiting for cache time to expire)
<table class="plainlinks" style="margin: 4px 10%; border-collapse: collapse; background:tmbox {{#f8eaba; borderswitch: 1px solid #c0c090;{{{type|}}}
| speedy = tmbox-speedy
| delete = tmbox-delete
| content = tmbox-content
| style = tmbox-style
| move = tmbox-move
| protection = tmbox-protection
| notice <!-- notice = default -->
| #default = tmbox-notice
}}" style="margin: 4px 10%; border-collapse: collapse; background: #f8eaba; border: 1px solid #c0c090;
{{#ifeq:{{{small|}}}|yes| float: right; clear: both; margin: 4px 0 4px 1em; width: 238px; font-size: 85%; line-height: 1.25em; }}
{{#switch:{{{type|}}}
{{#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 class="tmbox-image" style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
{{#if:{{{image|}}}
| {{{image}}}
}}</td>
}}
<td class="tmbox-text" style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| {{#ifeq:{{{imageright|}}}|none
| <!-- No image. -->
| <td class="tmbox-imageright" style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{imageright}}} </td>
}}
}}

edit

દિશાશોધન મેનુ