틀:TOC right/doc: 두 판 사이의 차이

Revi HQ
내용 추가됨 내용 삭제됨
(cloned missing text and categorizing from Template:TOC left)
(Same)
1번째 줄: 1번째 줄:
{{Documentation subpage}}
{{Documentation subpage}}
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
<!--Categories where indicated at
{{High-use| 34448 }}
{{TOC right}}
{{Uses TemplateStyles|Template:TOC limit/styles.css|Template:TOC right/styles.css}}


{{tl|TOC right}} forces the auto-generated Table of Contents for an article to appear floated to the right side of the page, in order to improve article layout.
{{tl|TOC right}} forces the auto-generated Table of Contents for an article to appear floated to the right side of the page, in order to improve article layout.


.
== Usage ==
Insert <code>&#123;&#123;{{BASEPAGENAME}}&#125;&#125;</code> at the point in the article where you want the top of the Table of Contents box to appear. This should usually be after the text of the lead section, and just before the first section heading, in accordance with [[Wikipedia:Lead section#Elements of the lead]]. Use with {{tl|-}} or {{tl|clear}} to prevent collision with text; use the '''clear''' parameter (see below) to prevent collision with images.


* Avoid placing the TOC in a visually poor location. Crossing a section division is probably a poor idea.
* Avoid placing the TOC in a visually poor location. Crossing a section division is probably a poor idea.

2019년 11월 26일 (화) 18:19 판

경고: 기본 정렬 키 "Toc Right"가 이전의 기본 정렬 키 "TOC right/doc"를 덮어쓰고 있습니다. }}</includeonly>

{{TOC right}} forces the auto-generated "Table of Contents" for an article to appear floated to the right side of the page (as seen right), in order to improve article layout.

틀 변수

이 틀은 한 줄로 쓰는 것이 권장됩니다.

변수설명형식상태
Clearclear

Sets the CSS clear property, which forces this float underneath the side specified with this attribute. So, clear=right (which is the default) will place the element after all the right floating elements before it. Options are left, right, both, or none.

문자열선택 사항
Limitlimit

Limits the depth of subheadings shown. For instance using limit=4 will hide the fourth level and deeper subheadings in the hierarchy. And limit=2 will hide all subheadings leaving only the main headings. This works by hiding the lower levels with CSS

숫자선택 사항
Widthwidth 1

Overrides the CSS width

알 수 없음선택 사항