Zum Inhalt springen

Vorlage:Imbox: Unterschied zwischen den Versionen

Changing to using the imbox CSS classes in MediaWiki:Common.css. Their 30 day caching time has passed. (Tested in /sandbox.)
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.)
imported>Davidgothberg
(Changing to using the imbox CSS classes in MediaWiki:Common.css. Their 30 day caching time has passed. (Tested in /sandbox.))
Zeile 1: Zeile 1:
<table class="plainlinks" style="margin: 4px 10%; border-collapse: collapse; background: #fbfbfb;
<table class="plainlinks imbox
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
| speedy    = border: 3px solid #b22222; background: #fee;
| speedy    = imbox-speedy
| delete    = border: 3px solid #b22222;
| delete    = imbox-delete
| content    = border: 3px solid #f28500;
| content    = imbox-content
| style      = border: 3px solid #f4c430;
| style      = imbox-style
| move      = border: 3px solid #9932cc;
| move      = imbox-move
| protection = border: 3px solid #bba;
| protection = imbox-protection
| license    = border: 3px solid #88a; background: #f7f8ff;
| license    = imbox-license
| featured  = border: 3px solid #cba135;
| featured  = imbox-featured
| notice          <!-- notice = default -->
| notice          <!-- notice = default -->
| #default  = border: 3px solid #1e90ff;
| #default  = imbox-notice
}} {{{style|}}}">
}}" style="{{{style|}}}">
<tr>
<tr>
{{#ifeq:{{{image|}}}|none
{{#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>
| <!-- No image. Cell with 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.9em; text-align: center;">
| <td class="imbox-image">
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
Zeile 32: Zeile 32:
   }}</td>
   }}</td>
}}
}}
<td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
<td class="imbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| <td style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{imageright}}} </td>
| <td class="imbox-imageright"> {{{imageright}}} </td>
}}
}}
</tr>
</tr>
{{#if:{{{below|}}}
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="imbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
}}
</table><noinclude>
</table><noinclude>


Anonymer Benutzer