틀: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) |
잔글 (판 22개를 가져왔습니다: Import missing parts) |
||
(사용자 3명의 중간 판 3개는 보이지 않습니다) | |||
1번째 줄: | 1번째 줄: | ||
<templatestyles src="Template:Nmbox/styles.css" /> |
|||
{{#if: {{{image|}}}{{{header|}}} | {{#if: {{{text|}}} | |
|||
<div class="nmbox noprint">{{#if: {{{image|}}}{{{header|}}} |
|||
{{{!}}class="nmbox" style="clear:{{{clear|both}}};margin:2px 0;border:1px solid #AAA;border-spacing:0;border-collapse:collapse;background:#F6F9ED;padding:0;" |
|||
|<div class="nmbox-header">{{#if: {{{image|}}}|<div class="nmbox-image mbox-image">{{{image|}}}</div>}}{{{header|}}} |
|||
{{!}}-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|}}} |
|||
{{ |
{{#if:{{{text|}}}|<div class="nmbox-text mbox-text">{{{text|}}}</div>}} |
||
⚫ | |||
{{!}}} | |
|||
<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> |
|||
⚫ | |||
}} | {{#if: {{{text|}}} | |
|||
<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> |
|||
⚫ |
2020년 12월 20일 (일) 03:32 기준 최신판
Template documentation[create]