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 | <table class="plainlinks imbox | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| speedy = | | speedy = imbox-speedy | ||
| delete = | | delete = imbox-delete | ||
| content = | | content = imbox-content | ||
| style = | | style = imbox-style | ||
| move = | | move = imbox-move | ||
| protection = | | protection = imbox-protection | ||
| license = | | license = imbox-license | ||
| featured = | | featured = imbox-featured | ||
| notice <!-- notice = default --> | | notice <!-- notice = default --> | ||
| #default = | | #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 | | <td class="imbox-image"> | ||
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
| {{{image}}} | | {{{image}}} | ||
Zeile 32: | Zeile 32: | ||
}}</td> | }}</td> | ||
}} | }} | ||
<td style=" | <td class="imbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | ||
{{#if:{{{imageright|}}} | {{#if:{{{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> | ||