"미디어위키 목차 항상 보이게 하기"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))
잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
7번째 줄: 7번째 줄:
==방법==
==방법==
*[[확장기능 폴더]]로 이동하여 git clone으로 설치
*[[확장기능 폴더]]로 이동하여 git clone으로 설치
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# cd /var/www/html/w/extensions/
[root@zetawiki ~]# cd /var/www/html/w/extensions/
[root@zetawiki extensions]# git clone https://github.com/jmnote/ForceTocOnEveryPage.git
[root@zetawiki extensions]# git clone https://github.com/jmnote/ForceTocOnEveryPage.git
14번째 줄: 14번째 줄:
remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 5
remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 5
Unpacking objects: 100% (5/5), done.
Unpacking objects: 100% (5/5), done.
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki extensions]# ll ForceTocOnEveryPage/
[root@zetawiki extensions]# ll ForceTocOnEveryPage/
total 4
total 4
-rw-r--r-- 1 root root 1040 Aug 27 01:21 ForceTocOnEveryPage.php
-rw-r--r-- 1 root root 1040 Aug 27 01:21 ForceTocOnEveryPage.php
</source>
</syntaxhighlight>


*[[LocalSettings.php]] 맨 아래에 다음 내용 추가
*[[LocalSettings.php]] 맨 아래에 다음 내용 추가
<source lang='php'>
<syntaxhighlight lang='php'>
require_once("$IP/extensions/ForceTocOnEveryPage/ForceTocOnEveryPage.php");
require_once("$IP/extensions/ForceTocOnEveryPage/ForceTocOnEveryPage.php");
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2020년 11월 2일 (월) 02:59 기준 최신판

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 }}