미디어위키 목차 항상 보이게 하기

1 개요[ | ]

미디어위키 목차 항상 보이게 하기
ForceTocOnEveryPage
  • __FORCETOC__ 나 __TOC__를 쓰지 않아도 모든 페이지에서 목차가 보임
  • 본 사이트에도 적용되어 있음(Special:Version 참고)

2 방법[ | ]

[root@zetawiki ~]# cd /var/www/html/w/extensions/
[root@zetawiki extensions]# git clone https://github.com/jmnote/ForceTocOnEveryPage.git
Initialized empty Git repository in /tmp/ForceTocOnEveryPage/.git/
remote: Counting objects: 5, done.
remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 5
Unpacking objects: 100% (5/5), done.
[root@zetawiki extensions]# ll ForceTocOnEveryPage/
total 4
-rw-r--r-- 1 root root 1040 Aug 27 01:21 ForceTocOnEveryPage.php
require_once("$IP/extensions/ForceTocOnEveryPage/ForceTocOnEveryPage.php");

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}