Vorlage:Cmbox: Unterschied zwischen den Versionen

Giving the "image=none" case more correct handling, the empty cell now much thinner giving the text less left padding.
imported>Davidgothberg
(Fixing the empty "image=" parameter bug. Dropping the "image=blank" option. (Tested in sandbox.))
imported>Davidgothberg
(Giving the "image=none" case more correct handling, the empty cell now much thinner giving the text less left padding.)
Zeile 11: Zeile 11:
}} {{{style|}}}">
}} {{{style|}}}">
<tr>
<tr>
<td style="border: none; padding: 2px 0px 2px 0.5em; text-align: center;">
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
| <!-- No image cell. Empty cell necessary for text cell to have 100% width -->
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| <div style="width:52px;">  
| <td style="border: none; padding: 2px 0px 2px 0.5em; text-align: center;"><div style="width: 52px;">
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
Zeile 27: Zeile 26:
     | #default  = [[Image:Cmbox notice.png|40x40px]]
     | #default  = [[Image:Cmbox notice.png|40x40px]]
     }}
     }}
   }}</div>
   }}</div></td>
}}</td>
}}
<td style="border: none; padding: 0.25em 0.5em; width: 100%; {{{textstyle|}}}">{{{text}}}</td>
<td style="border: none; padding: 0.25em 0.5em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
  | <td style="border: none; padding: 2px 0.8em 2px 0px; text-align: center;"> {{{imageright}}} </td>
| <td style="border: none; padding: 2px 0.8em 2px 0px; text-align: center;"> {{{imageright}}} </td>
}}
}}
</tr>
</tr>
Anonymer Benutzer