편집 요약 없음 |
편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
{{namucat|김찬/제작한 틀|문법 편의 틀}} | {{namucat|김찬/제작한 틀|문법 편의 틀}} | ||
{{틀 도움}} | {{틀 도움}} | ||
<onlyinclude><includeonly>{{#if:{{{colspan|}}}|colspan="{{{colspan|}}}"|}} {{#if:{{{rowspan|}}}|rowspan="{{{rowspan|}}}"|}} {{#if:{{{class|}}}|class="{{#switch:{{{class|}}}|wiki=wikitable|wikicollap=wikitable mw-collapsible|wikicollaped=wikitable mw-collapsible mw-collapsed|{{{class|}}}}}"|}} data-expandtext="보기" data-collapsetext="닫기" style="{{#if:{{{display|}}}|display: {{{display|}}};|}} {{#switch:{{{table|}}}|left = float: left;|leftblock = margin: 12px auto 12px 0;|center = margin: 12px auto;|rightblock = margin: 12px 0 12px auto;|right = float: right;|}} {{#if:{{{border|}}}|{{#ifeq:{{{border|}}}|default|border: 2px solid # | <onlyinclude><includeonly>{{#if:{{{colspan|}}}|colspan="{{{colspan|}}}"|}} {{#if:{{{rowspan|}}}|rowspan="{{{rowspan|}}}"|}} {{#if:{{{class|}}}|class="{{#switch:{{{class|}}}|wiki=wikitable|wikicollap=wikitable mw-collapsible|wikicollaped=wikitable mw-collapsible mw-collapsed|{{{class|}}}}}"|}} data-expandtext="보기" data-collapsetext="닫기" style="{{#if:{{{display|}}}|display: {{{display|}}};|}} {{#switch:{{{table|}}}|left = float: left;|leftblock = margin: 12px auto 12px 0;|center = margin: 12px auto;|rightblock = margin: 12px 0 12px auto;|right = float: right;|}} {{#if:{{{border|}}}|{{#ifeq:{{{border|}}}|default|border: 2px solid #ddd|border: 2px solid {{{border|}}}}};|}} {{#if:{{{bg|}}}|{{#ifeq:{{{bg|}}}|header|background: #f5f8fa!important|background: {{{bg|}}}!important}};|}} {{#if:{{{width|}}}|width: {{{width|}}};|}} {{#if:{{{max-width|}}}|max-width: {{{max-width|}}};|}} {{#if:{{{min-width|}}}|min-width: {{{min-width|}}};|}} {{#if:{{{height|}}}|height: {{{height|}}};|}} {{#if:{{{color|}}}|{{#switch:{{{color|}}}|link = color: #337ab7;|nolink = color: #ba0000;|exlink = color: #33b733;|darklink = color: #ec9f19;|jwiki = color: #880e4f;|default = color: #373a3c;|color: {{{color|}}}}};|}} {{#if:{{{align|}}}|text-align: {{{align|}}};|}} {{#if:{{{vertical|}}}|vertical-align: {{{vertical|}}};|}} {{#if:{{{layout|}}}|table-layout: fixed;|}} {{#if:{{{size|}}}|font-size: {{{size|}}}pt;|}} {{#switch:{{{break|}}}|normal = word-break:normal;|keep = word-break:keep-all;|break = word-break:break-all;|}} {{#if:{{{user|}}}|user-select: {{{user|}}};|}} {{{1|}}}"</includeonly></onlyinclude> | ||
style=""구문을 대신하는 틀입니다. display, bg, width, color 등의 값을 더 간편하게 틀 변수로 입력할 수 있습니다. | style=""구문을 대신하는 틀입니다. display, bg, width, color 등의 값을 더 간편하게 틀 변수로 입력할 수 있습니다. | ||
2024년 5월 14일 (화) 23:31 판
틀:style | |
---|---|
사용문서
|
|
넘겨주기
|
이동하기
|
style=""구문을 대신하는 틀입니다. display, bg, width, color 등의 값을 더 간편하게 틀 변수로 입력할 수 있습니다.
변수 | 입력 가능한 값 | 대응하는 속성 |
---|---|---|
display: | ||
float: left | ||
margin: 12px auto 12px 0 | ||
margin: 12px auto | ||
margin: 12px 0 12px auto | ||
float: right | ||
border: 2px solid 색깔 | ||
background: 색깔 | ||
color: 색깔 | ||
width: | ||
max-width: | ||
text-align: left | ||
text-align: center | ||
text-align: right | ||
table-layout: fixed | ||
font-size: 숫자 |