틀:Imbox: 두 판 사이의 차이
Revi HQ
내용 추가됨 내용 삭제됨
(Decreasing the empty left image cell from a total of 3px width to 1px width. Can't be 0px since then boxes who are not filled with text don't stay 80% wide.) |
(Updating to use "mbox-*" class names instead of "imbox-*". See Template talk:Mbox#Simpler to use class names.) |
||
15번째 줄: | 15번째 줄: | ||
{{#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: 0px; width: 1px;"></td> |
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td> |
||
| <td class=" |
| <td class="mbox-image"> |
||
{{#if:{{{image|}}} |
{{#if:{{{image|}}} |
||
| {{{image}}} |
| {{{image}}} |
||
32번째 줄: | 32번째 줄: | ||
}}</td> |
}}</td> |
||
}} |
}} |
||
<td class=" |
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> |
||
{{#if:{{{imageright|}}} |
{{#if:{{{imageright|}}} |
||
| <td class=" |
| <td class="mbox-imageright"> {{{imageright}}} </td> |
||
}} |
}} |
||
</tr> |
</tr> |
||
{{#if:{{{below|}}} |
{{#if:{{{below|}}} |
||
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class=" |
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr> |
||
}} |
}} |
||
</table><noinclude> |
</table><noinclude> |
||
{{pp-template|small=yes}} |
{{pp-template|small=yes}} |
||
{{ |
{{documentation}} |
||
<!-- Add categories and |
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
||
</noinclude> |
</noinclude> |