틀:문단접기2: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
6번째 줄: 6번째 줄:


↓문단 이름↓
↓문단 이름↓
--><div class="mw-customtoggle-{{{1|default}}}"><div class="mw-collapsible mw-collapsed paragraph-folding" id="mw-customcollapsible-{{{1|default}}}" style="margin: 1rem 0 .6rem; padding-bottom: 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>&nbsp;}}{{{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: 400; vertical-align: baseline;">[<span class="plainlinks" style="margin-left: 3.25px;">[{{fullurl:{{FULLPAGENAME}}|veaction=edit}} <span title="편집: {{{2|제목}}}">편집</span>]</span> {{!}} <span class="plainlinks" style="margin-right: 3.25px;">[{{fullurl:{{FULLPAGENAME}}|action=edit}} <span title="편집: {{{2|제목}}}">원본 편집</span>]</span>]</span>}}</div><!--
--><div class="mw-customtoggle-{{{1|default}}} paragraph-folding"><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{1|default}}}" style="margin: 1rem 0 .6rem; padding-bottom: 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>&nbsp;}}{{{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: 400; vertical-align: baseline;">[<span class="plainlinks" style="margin-left: 3.25px;">[{{fullurl:{{FULLPAGENAME}}|veaction=edit}} <span title="편집: {{{2|제목}}}">편집</span>]</span> {{!}} <span class="plainlinks" style="margin-right: 3.25px;">[{{fullurl:{{FULLPAGENAME}}|action=edit}} <span title="편집: {{{2|제목}}}">원본 편집</span>]</span>]</span>}}</div><!--
--><div class="mw-collapsible paragraph-folding" id="mw-customcollapsible-{{{1|default}}}" style="margin: 1rem 0 .6rem; padding-bottom: 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>&nbsp;}}{{{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: 400; vertical-align: baseline;">[<span class="plainlinks" style="margin-left: 3.25px;">[{{fullurl:{{FULLPAGENAME}}|veaction=edit}} <span title="편집: {{{2|제목}}}">편집</span>]</span> {{!}} <span class="plainlinks" style="margin-right: 3.25px;">[{{fullurl:{{FULLPAGENAME}}|action=edit}} <span title="편집: {{{2|제목}}}">원본 편집</span>]</span>]</span>}}</div></div><!--
--><div class="mw-collapsible" id="mw-customcollapsible-{{{1|default}}}" style="margin: 1rem 0 .6rem; padding-bottom: 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>&nbsp;}}{{{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: 400; vertical-align: baseline;">[<span class="plainlinks" style="margin-left: 3.25px;">[{{fullurl:{{FULLPAGENAME}}|veaction=edit}} <span title="편집: {{{2|제목}}}">편집</span>]</span> {{!}} <span class="plainlinks" style="margin-right: 3.25px;">[{{fullurl:{{FULLPAGENAME}}|action=edit}} <span title="편집: {{{2|제목}}}">원본 편집</span>]</span>]</span>}}</div></div><!--
↑문단 이름↑
↑문단 이름↑



2023년 7월 10일 (월) 18:51 판

:문단접기2
사용문서
새로고침
넘겨주기
이동하기
[ 주요 업데이트 노트 ]
2023.07.10 문단 한 줄을 눌러도 접기가 작동하도록 변경
 관련 문서: 틀:문단접기

설명

기본적으로는 {{문단접기}}와 같지만 다음과 같은 장단점이 있습니다.

문단접기 문단접기2
장점
  • 문단 번호를 수동으로 지정하지 않아도 됨.
  • 위키 문법으로 문단 단계를 지정할 수 있음.
  • 문단이 접혀 있을 때 제목 전체가 반투명해짐.
  • 목차에서 지저분한 기호가 보이지 않음.
단점
  • 문단이 접혀 있을 때 화살표만 반투명해짐.
  • 목차에서 지저분한 화살표 기호가 함께 보임.
  • 문단 번호를 수동으로 지정해야 함.
  • 문단 단계를 틀 내에서 지정해야 함.
  • 문단 부분 편집 버튼을 눌러도 문서 전체 편집으로 넘어감.

사용법

{{문단접기}}보다 복잡합니다.

{{문단접기2|아이디|제목|단계=|번호=}}

위는 필수 변수들입니다. 번호 변수를 off로 하면 문단 번호 자체가 사라지며, 편집 변수를 off로 하면 제목 옆 편집 버튼들이 사라집니다.

단계 변수는 위키 문법에서 문단 제목 양옆에 붙는 등호의 개수를 말합니다. 예를 들어 단계=2== 문단 ==을 말합니다.

{{pf-c}}는 이 틀에도 똑같이 사용할 수 있습니다.

아래 문단은 이 틀을 사용해 접은 문단입니다.

{{문단접기2|example|눌러보세요|단계=2|번호=3}}
{{pf-c|example|내용이 나옵니다}}
3 눌러보세요 [편집 | 원본 편집]
3 눌러보세요 [편집 | 원본 편집]

눌러보세요

내용이 나옵니다

둘러보기

+
김찬 제작 틀
[ A~Z & etc. ]
[ ㄱ~ㅅ ]
[ ㅇ~ㅎ ]
※ 더 이상 사용하지 않거나 사용할 필요가 없는 경우 취소선 처리
※ 일부 극히 단순한 틀은 본 틀 목록에 미포함