편집 요약 없음 |
편집 요약 없음 |
||
5번째 줄: | 5번째 줄: | ||
<onlyinclude><includeonly>{{css|문단접기2}}<!-- | <onlyinclude><includeonly>{{css|문단접기2}}<!-- | ||
↓접힌 문단↓ | |||
--><div class="mw-customtoggle-{{{1|default}}} paragraph-folding"><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{1|default}}}" style="margin: .5rem 0 .6rem; padding: .5rem 0 calc(.6rem + 5px); border-bottom: 1px {{#ifeq:{{{type|}}}|namu|solid #ccc|dashed #e1e8ed}}; font-size: {{#switch:{{{단계|}}}|1=33|2=27|3=24|4=22.5|5=21.45|#default=27}}px; {{#ifeq:{{{type|}}}|namu|font-weight: bold;|}}">{{#ifeq:{{{번호|}}}|off||<span class="mw-headline-number">{{{번호|1}}}</span> }}{{{2|제목}}} <span style="color: #666; font-weight: normal;">ᐯ</span>{{#ifeq:{{{편집|}}}|off||<span style="{{#ifeq:{{{type|}}}|namu|float: right;|}} margin-left: 13px; font-size: 13px; font-weight: | --><div class="mw-customtoggle-{{{1|default}}} paragraph-folding"><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{1|default}}}" style="margin: .5rem 0 .6rem; padding: .5rem 0 calc(.6rem + 5px); border-bottom: 1px {{#ifeq:{{{type|}}}|namu|solid #ccc|dashed #e1e8ed}}; font-size: {{#switch:{{{단계|}}}|1=33|2=27|3=24|4=22.5|5=21.45|#default=27}}px; {{#ifeq:{{{type|}}}|namu|font-weight: bold;|}}">{{#ifeq:{{{번호|}}}|off||<span class="mw-headline-number">{{{번호|1}}}</span> }}{{{2|제목}}} <span style="color: #666; font-weight: normal;">ᐯ</span>{{#ifeq:{{{편집|}}}|off||<span style="{{#ifeq:{{{type|}}}|namu|float: right;|}} margin-left: 13px; font-size: 13px; font-weight: {{#ifeq:{{{type|}}}|namu|bold|normal}}; vertical-align: baseline;">[{{#ifeq:{{{type|}}}|namu||<span class="plainlinks" style="margin-left: 3.25px;">[{{fullurl:{{FULLPAGENAME}}|veaction=edit}} <span title="편집: {{{2|제목}}}">편집</span>]</span> {{!}} |}}<span class="plainlinks" {{#ifeq:{{{type|}}}|namu||style="margin-right: 3.25px;"}}>[{{fullurl:{{FULLPAGENAME}}|action=edit}} <span title="편집: {{{2|제목}}}">원본 편집</span>]</span>]</span>}}</div><!-- | ||
--><div class="mw-collapsible" id="mw-customcollapsible-{{{1|default}}}" style="margin: .5rem 0 .6rem; padding: .5rem 0 calc(.6rem + 5px); border-bottom: 1px {{#ifeq:{{{type|}}}|namu|solid #ccc|dashed #e1e8ed}}; font-size: {{#switch:{{{단계|}}}|1=33|2=27|3=24|4=22.5|5=21.45|#default=27}}px; opacity: .5; {{#ifeq:{{{type|}}}|namu|font-weight: bold;|}}">{{#ifeq:{{{번호|}}}|off||<span class="mw-headline-number">{{{번호|1}}}</span> }}{{{2|제목}}} <span style="color: #666; font-weight: normal;">ᐳ</span>{{#ifeq:{{{편집|}}}|off||<span style="{{#ifeq:{{{type|}}}|namu|float: right;|}} margin-left: 13px; font-size: 13px; font-weight: | |||
↓펼친 문단↓ | |||
--><div class="mw-collapsible" id="mw-customcollapsible-{{{1|default}}}" style="margin: .5rem 0 .6rem; padding: .5rem 0 calc(.6rem + 5px); border-bottom: 1px {{#ifeq:{{{type|}}}|namu|solid #ccc|dashed #e1e8ed}}; font-size: {{#switch:{{{단계|}}}|1=33|2=27|3=24|4=22.5|5=21.45|#default=27}}px; opacity: .5; {{#ifeq:{{{type|}}}|namu|font-weight: bold;|}}">{{#ifeq:{{{번호|}}}|off||<span class="mw-headline-number">{{{번호|1}}}</span> }}{{{2|제목}}} <span style="color: #666; font-weight: normal;">ᐳ</span>{{#ifeq:{{{편집|}}}|off||<span style="{{#ifeq:{{{type|}}}|namu|float: right;|}} margin-left: 13px; font-size: 13px; font-weight: {{#ifeq:{{{type|}}}|namu|bold|normal}}; vertical-align: baseline;">[{{#ifeq:{{{type|}}}|namu||<span class="plainlinks" style="margin-left: 3.25px;">[{{fullurl:{{FULLPAGENAME}}|veaction=edit}} <span title="편집: {{{2|제목}}}">편집</span>]</span> {{!}} |}}<span class="plainlinks" {{#ifeq:{{{type|}}}|namu||style="margin-right: 3.25px;"}}>[{{fullurl:{{FULLPAGENAME}}|action=edit}} <span title="편집: {{{2|제목}}}">원본 편집</span>]</span>]</span>}}</div><!-- | |||
↓실제 문단↓ | ↓실제 문단↓ | ||
14번째 줄: | 15번째 줄: | ||
{{#switch:{{{단계|}}}|1 = <h1>|2 = <h2>|3 = <h3>|4 = <h4>|5 = <h5>|<h2>}} {{{2|제목}}} {{#switch:{{{단계|}}}|1 = </h1>|2 = </h2>|3 = </h3>|4 = </h4>|5 = </h5>|</h2>}} | {{#switch:{{{단계|}}}|1 = <h1>|2 = <h2>|3 = <h3>|4 = <h4>|5 = <h5>|<h2>}} {{{2|제목}}} {{#switch:{{{단계|}}}|1 = </h1>|2 = </h2>|3 = </h3>|4 = </h4>|5 = </h5>|</h2>}} | ||
</div><!-- | </div><!-- | ||
--></includeonly></onlyinclude> | --></includeonly></onlyinclude> |
2023년 7월 11일 (화) 12:06 판
틀:문단접기2 | |
---|---|
사용문서
|
|
넘겨주기
|
이동하기
|
[ 주요 업데이트 노트 ]
|
관련 문서: 틀:문단접기
설명
기본적으로는 {{문단접기}}와 같지만 다음과 같은 장단점이 있습니다.
문단접기 | 문단접기2 | |
---|---|---|
장점 |
|
|
단점 |
|
|
사용법
{{문단접기}}보다 복잡합니다.
{{문단접기2|아이디|제목|단계=|번호=}}
위는 필수 변수들입니다. 번호 변수를 off로 하면 문단 번호 자체가 사라지며, 편집 변수를 off로 하면 제목 옆 편집 버튼들이 사라집니다.
단계 변수는 위키 문법에서 문단 제목 양옆에 붙는 등호의 개수를 말합니다. 예를 들어 단계=2
는 == 문단 ==
을 말합니다.
{{pf-c}}는 이 틀에도 똑같이 사용할 수 있습니다.
아래 문단은 이 틀을 사용해 접은 문단입니다.
{{문단접기2|example|눌러보세요|단계=2|번호=3}} {{pf-c|example|내용이 나옵니다}}
내용이 나옵니다