확장 기능:TocTree
Appearance
출시 상태: 안정 |
|
|---|---|
| 구현 | 사용자 인터페이스 |
| 설명 | Allows for expansion and collapsing of the table of contents |
| 만든 이 | Roland Unger, Matthias Mullie |
| 최신 버전 | 1.12.0 |
| MediaWiki | >= 1.47.0 |
| Licence | GNU General Public License 2.0 or later |
| 다운로드 | |
| TocTree 확장 기능 번역 (translatewiki.net에서 가능한 경우) | |
| 이슈 | 미해결 작업 · 버그 보고 |
The TocTree extension allows for initial expansion and collapsing of the table of contents.
Installation
- 파일을 다운로드하고
TocTree폴더를extensions/디렉토리에 넣어 주세요.
개발자와 코딩 기여자는 Git을 이용해 확장기능을 다운받는 것이 좋습니다.cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TocTree
- 아래의 코드를 LocalSettings.php 코드의 마지막에 추가합니다.
wfLoadExtension( 'TocTree' );
완료 – 위키의 ‘Special:Version’에 이동해서, 확장기능이 올바르게 설치된 것을 확인합니다.
Customization
The PHP script will add two new options to the user preferences. They were added to the Misc section:
- Floated table of contents
- Expand table of contents
Defaults are collapsed but not floated tocs. You can overwrite the default values by setting true in your LocalSettings.php file:
$wgDefaultUserOptions['toc-floated'] = false;
$wgDefaultUserOptions['toc-expand'] = false;
Prevention of TOC floating
The author has the opportunity to prevent floating of the TOC set by the user(s) by using a div tag with the style class noFloat enclosing the TOC.
<div class="noFloat">__TOC__</div>
Known problems
There are the well-known problems of floated boxes like:
- Missing list bullets
- Design problems of narrow TOCs and positioning problems with text and wide right-floated boxes.
Additional:
- Bidi support (right-to-left writing direction) implemented but not yet tested (for instance needed for Hebrew and Arabic).
- Support of only the MonoBook and Vector skins.
| 이 확장 기능은 하나 이상의 위키미디어 프로젝트에서 사용 중입니다. 이것은 아마도 이 확장 기능이 안정적이고 트래픽이 많은 웹 사이트에서 사용할 수 있을 만큼 충분히 잘 작동한다는 것을 의미합니다. 설치된 위치를 확인하려면 위키미디어의 CommonSettings.php 및 InitialiseSettings.php 구성 파일에서 이 확장 기능의 이름을 찾습니다. 특정 위키에 설치된 확장 기능의 전체 목록은 위키의 Special:Version 문서에서 볼 수 있습니다. |
| This extension is included in the following wiki farms/hosts and/or packages: |
Categories:
- Stable extensions/ko
- User interface extensions/ko
- ApiParseMakeOutputPage extensions/ko
- BeforePageDisplay extensions/ko
- GetPreferences extensions/ko
- GPL licensed extensions/ko
- Extensions in Wikimedia version control/ko
- All extensions/ko
- Extensions used on Wikimedia/ko
- Extensions included in Miraheze/ko
- Extensions included in MyWikis/ko
- TOC extensions/ko
