en.wikibooks>Happy-melon (hardcoded small styles) |
en.wikibooks>Happy-melon (image sizing) |
||
Line 19: | Line 19: | ||
{{#ifeq:{{{image|}}}|none | {{#ifeq:{{{image|}}}|none | ||
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->{{td}} | | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->{{td}} | ||
| <td class="mbox-image"> | | <td class="mbox-image">{{#switch: {{{small|}}} | left=<!--nothing--> | <div style="width:52px;"> }} | ||
{{#if:{{{image|}}} | |||
| {{{image}}} | |||
| [[Image:{{#switch:{{{type|}}} | |||
| speedy = Ambox speedy deletion.png | |||
| delete = Ambox deletion.png | |||
| content = Ambox content.png | |||
| style = Ambox style.png | |||
| move = Ambox move.png | |||
| protection = Ambox protection.png | |||
| notice <!-- notice = default --> | |||
| #default = Ambox notice.png | |||
}} | {{#switch: {{{small|}}} | left=20x20px | 40x40px }} ]] | |||
}}{{#switch: {{{small|}}} | left=<!--nothing--> | </div> }}</td> | |||
}} | }} | ||
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> |