틀:Nmbox: 두 판 사이의 차이
Revi HQ
내용 추가됨 내용 삭제됨
편집 요약 없음 |
잔글 (avoid table as much as possible, using divs instead if there's only one cell to render; fix layout of cells for RTL if there's a 2-column table ; displya nothing if both cells are empty) |
||
1번째 줄: | 1번째 줄: | ||
⚫ | |||
<table class="nmbox" style="border:1px solid #AAAAAA; border-collapse:collapse; clear:{{{clear|both}}}; font-size:85%; margin: 0.25em 0;"> |
|||
{{{!}}class="nmbox" style="clear:{{{clear|both}}};margin:2px 0;border:1px solid #AAA;border-spacing:0;border-collapse:collapse;background:#F6F9ED;padding:0;" |
|||
<tr style="background: #EEF3E2"> |
|||
{{!}}-style="vertical:align:middle" |
|||
⚫ | |||
!scope="row" class="mbox-image" style="background:#EEF3E2;padding:4px 0.5em;border:1px solid #AAA;white-space:nowrap;font-weight:bold;text-align:center;"{{!}}{{{image|}}} {{{header|}}} |
|||
{{!}}class="mbox-text" style="border:1px solid #AAA;padding:4px 0.5em;width:100%;"{{!}}{{{text|}}} |
|||
| <td class="mbox-empty-cell"></td> <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --> |
|||
}} |
{{!}}} | |
||
< |
<div class="nmbox" style="clear:{{{clear|both}}};margin:2px 0;border:1px solid #AAA;background:#F6F9ED;"> |
||
<div class="mbox-image" style="padding:4px 0.5em;font-weight:bold;text-align:center;">{{{image|}}} {{{header|}}}</div> |
|||
</tr></table><noinclude> |
|||
</div> |
|||
{{documentation}} |
|||
}} | {{#if: {{{text|}}} | |
|||
</noinclude> |
|||
<div class="nmbox" style="clear:{{{clear|both}}};margin:2px 0;border:1px solid #AAA;background:#F6F9ED;"> |
|||
<div class="mbox-text" style="padding:4px 0.5em;">{{{text|}}}</div> |
|||
</div> |
|||
}}}}<noinclude>{{documentation}}</noinclude> |
2014년 1월 16일 (목) 15:22 판
Template documentation[create]