|
|
3번째 줄: |
3번째 줄: |
| {{관련 문서2|틀:문단접기}} | | {{관련 문서2|틀:문단접기}} |
| <onlyinclude><includeonly><!-- | | <onlyinclude><includeonly><!-- |
|
| |
| ↓기본 레이아웃↓
| |
| --><div style="margin: 15px 0px 9px; padding-bottom: 9px; border-bottom: 1px dashed #e1e8ed; color: rgb(55, 58, 60); font-size: {{#switch:{{{단계|}}} | 1 = 33 | 2 = 27 | 3 = 24 | 4 = 22.5 | 5 = 21.45 | #default = 27}}px;"><span id="{{{anchor|{{{2|제목}}}}}}"></span><span class="mw-headline">{{#ifeq:{{{번호|}}}|off||<span class="mw-headline-number" style="color: rgb(65, 136, 241);">{{{번호|1}}}</span> }}<!--
| |
| ↑기본 레이아웃↑
| |
|
| |
|
| ↓문단 이름↓ | | ↓문단 이름↓ |
| --><span class="mw-customtoggle-{{{1|default}}}"><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{1|default}}}" style="display: inline-block;">{{{2|제목}}} <div style="display: inline-block; width: 15px; color: #666;">ᐯ</div></div><div class="mw-collapsible" id="mw-customcollapsible-{{{1|default}}}" style="display: inline-block; opacity: .5;">{{{2|제목}}} <div style="display: inline-block; width: 15px; color: #666;">ᐳ</div></div></span><!-- | | --><div class="mw-customtoggle-{{{1|default}}}"><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{1|default}}}" style="margin: 15px 0px 9px; padding-bottom: 9px; 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:{{{번호|}}}|off||<span class="mw-headline-number">{{{번호|1}}}</span> }}{{{2|제목}}} <span style="color: #666;">ᐯ</span></div><!-- |
| | --><div class="mw-collapsible" id="mw-customcollapsible-{{{1|default}}}" style="margin: 15px 0px 9px; padding-bottom: 9px; 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:{{{번호|}}}|off||<span class="mw-headline-number">{{{번호|1}}}</span> }}{{{2|제목}}} <span style="color: #666;">ᐳ</span></div></div><!-- |
| ↑문단 이름↑ | | ↑문단 이름↑ |
|
| |
| ↓편집 버튼↓
| |
| -->{{#ifeq:{{{편집|}}}|off||<span style="margin-left: 13px; font-size: 13px; font-weight: 400; vertical-align: baseline;">[<span class="plainlinks" style="margin-left: 3.25px;">[{{fullurl:{{{page|{{FULLPAGENAME}}}}}|veaction=edit}} <span title="편집: {{{2|제목}}}">편집</span>]</span> {{!}} <span class="plainlinks" style="margin-right: 3.25px;">[{{fullurl:{{{page|{{FULLPAGENAME}}}}}|action=edit}} <span title="편집: {{{2|제목}}}">원본 편집</span>]</span>]</span>}}</div><!--
| |
| ↑편집 버튼↑
| |
|
| |
|
| ↓실제 문단↓ | | ↓실제 문단↓ |
2023년 7월 10일 (월) 18:10 판
관련 문서: 틀:문단접기
설명
기본적으로는 {{문단접기}}와 같지만 다음과 같은 장단점이 있습니다.
|
문단접기 |
문단접기2
|
장점
|
- 문단 번호를 수동으로 지정하지 않아도 됨.
- 위키 문법으로 문단 단계를 지정할 수 있음.
|
- 문단이 접혀 있을 때 제목 전체가 반투명해짐.
- 목차에서 지저분한 기호가 보이지 않음.
|
단점
|
- 문단이 접혀 있을 때 화살표만 반투명해짐.
- 목차에서 지저분한 화살표 기호가 함께 보임.
|
- 문단 번호를 수동으로 지정해야 함.
- 문단 단계를 틀 내에서 지정해야 함.
- 문단 부분 편집 버튼을 눌러도 문서 전체 편집으로 넘어감.
|
사용법
{{문단접기}}보다 복잡합니다.
{{문단접기2|아이디|제목|단계=|번호=}}
위는 필수 변수들입니다. 번호 변수를 off로 하면 문단 번호 자체가 사라지며, 편집 변수를 off로 하면 제목 옆 편집 버튼들이 사라집니다.
단계 변수는 위키 문법에서 문단 제목 양옆에 붙는 등호의 개수를 말합니다. 예를 들어 단계=2
는 == 문단 ==
을 말합니다.
{{pf-c}}는 이 틀에도 똑같이 사용할 수 있습니다.
둘러보기
+ 김찬이 제작한 185개의 틀
|
[ A~Z & etc. ]
[ ㄱ~ㅅ ]
[ ㅇ~ㅎ ]
|
※ 더 이상 사용하지 않거나 사용할 필요가 없는 경우 취소선 처리 ※ 일부 극히 단순한 틀은 본 틀 목록에 미포함
|