"साँचा:Cmbox": अवतरणों में अंतर

Fixing the empty "image=" parameter bug. Dropping the "image=blank" option. (Tested in sandbox.)
Giving the "image=none" case more correct handling, the empty cell now much thinner giving the text less left padding.
पंक्ति ११:
}} {{{style|}}}">
<tr>
<td style="border: none; padding: 2px 0px 2px 0.5em; text-align: center;">
{{#ifeq:{{{image|}}}|none
| <!-- No image cell. EmptyCell cellwith 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;">
{{#if:{{{image|}}}
| {{{image}}}
Line २७ ⟶ २६:
| #default = [[Image:Cmbox notice.png|40x40px]]
}}
}}</div></td>
}}</td>
<td style="border: none; padding: 0.25em 0.5em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td style="border: none; padding: 2px 0.8em 2px 0px; text-align: center;"> {{{imageright}}} </td>
}}
</tr>