틀:TOC right/doc: 두 판 사이의 차이
(cloned missing text and categorizing from Template:TOC left) |
(Same) |
||
1번째 줄: | 1번째 줄: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
<!--Categories where indicated at |
<!--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>{{{{BASEPAGENAME}}}}</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 판
This is a documentation subpage for 틀:TOC right. It contains usage information, categories and other content that is not part of the original 틀 page. |
경고: 기본 정렬 키 "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.
변수 | 설명 | 형식 | 상태 | |
---|---|---|---|---|
Clear | clear | 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. | 문자열 | 선택 사항 |
Limit | limit | 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 | 숫자 | 선택 사항 |
Width | width 1 | Overrides the CSS width | 알 수 없음 | 선택 사항 |