틀:Imbox: 두 판 사이의 차이
Revi HQ
내용 추가됨 내용 삭제됨
(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.) |
(Changing to using the imbox CSS classes in MediaWiki:Common.css. Their 30 day caching time has passed. (Tested in /sandbox.)) |
||
1번째 줄: | 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 class="imbox-image"> |
|||
| <td style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;"> |
|||
{{#if:{{{image|}}} |
{{#if:{{{image|}}} |
||
| {{{image}}} |
| {{{image}}} |
||
32번째 줄: | 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> |
||