Zum Inhalt springen

Vorlage:Imbox: Unterschied zwischen den Versionen

Removed the div, left side images can now be any size without "bigimage". Giving "image=none" better handling. Removed the "metadata" class, since imboxes should be printed. Removed unneded border.
imported>Edokter
(Add bigimage parameter)
imported>Davidgothberg
(Removed the div, left side images can now be any size without "bigimage". Giving "image=none" better handling. Removed the "metadata" class, since imboxes should be printed. Removed unneded border.)
Zeile 1: Zeile 1:
<table class="metadata plainlinks" style="margin: 4px 10%; border-collapse: collapse; border: 1px solid #aaa; background: #fbfbfb;
<table class="plainlinks" style="margin: 4px 10%; border-collapse: collapse; background: #fbfbfb;
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
| speedy    = border: 3px solid #b22222; background: #fee;
| speedy    = border: 3px solid #b22222; background: #fee;
Zeile 13: Zeile 13:
}} {{{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 {{#if:{{{bigimage|}}}||style="width: 52px;"}}>  
| <td style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
Zeile 31: Zeile 30:
     | #default  = [[Image:Imbox notice.png|40x40px]]
     | #default  = [[Image:Imbox notice.png|40x40px]]
     }}
     }}
   }}</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.9em; 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.9em 2px 0px; text-align: center;"> {{{imageright}}} </td>
}}
}}
</tr>
</tr>
Anonymer Benutzer