메뉴 여닫기
개인 메뉴 토글
로그인하지 않음
만약 지금 편집한다면 당신의 IP 주소가 공개될 수 있습니다.

문서 목차 불러오기 기능 추가: 두 판 사이의 차이

데브카페
새 문서: == LocalSettings.php 에 추가 == $wgDefaultUserOptions['numberheadings'] = 1; == 넘버 보이기/ 숨기기 == __NUMBEREDHEADINGS__ __NONUMBEREDHEADINGS__ * To enable numbering on a specific page, add __NUMBEREDHEADINGS__ at the beginning of the page. * To disable numbering on a specific page, add __NONUMBEREDHEADINGS__. == Customization with CSS == If you want custom numbering styles (such as letters or Roman numerals), you can use custom CSS. However, this require...
 
편집 요약 없음
 
(같은 사용자의 중간 판 3개는 보이지 않습니다)
1번째 줄: 1번째 줄:
== LocalSettings.php 에 추가  ==
== LocalSettings.php 에 추가  ==
 
<pre>
$wgDefaultUserOptions['numberheadings'] = 1;
$wgDefaultUserOptions['numberheadings'] = 1;
</pre>


== 넘버 보이기/ 숨기기 ==
== 넘버 보이기/ 숨기기 ==
 
<pre>
__NUMBEREDHEADINGS__  
__NUMBEREDHEADINGS__  


__NONUMBEREDHEADINGS__
__NONUMBEREDHEADINGS__
</pre>


* To enable numbering on a specific page, add __NUMBEREDHEADINGS__ at the beginning of the page.
* To enable numbering on a specific page, add __NUMBEREDHEADINGS__ at the beginning of the page.
13번째 줄: 15번째 줄:


== Customization with CSS ==
== Customization with CSS ==
If you want custom numbering styles (such as letters or Roman numerals),
you can use custom CSS.
However, this requires some modifications in the MediaWiki skin files or adding specific CSS selectors.
<source lang=css>
<source lang=css>
.mw-headline::before {
.mw-headline::before {
25번째 줄: 24번째 줄:
* 알파벳이나 로마 숫자 스타일의 번호 매기기를 원하시면, 특정 카운터와 CSS 규칙을 추가해야 합니다.
* 알파벳이나 로마 숫자 스타일의 번호 매기기를 원하시면, 특정 카운터와 CSS 규칙을 추가해야 합니다.
* 설정을 통해 MediaWiki 콘텐츠 전반에서 번호가 매겨진 제목을 표시하고 제어할 수 있습니다.
* 설정을 통해 MediaWiki 콘텐츠 전반에서 번호가 매겨진 제목을 표시하고 제어할 수 있습니다.
[[category:미디어위키]]

2025년 5월 20일 (화) 06:33 기준 최신판

LocalSettings.php 에 추가

$wgDefaultUserOptions['numberheadings'] = 1;

넘버 보이기/ 숨기기

__NUMBEREDHEADINGS__ 

__NONUMBEREDHEADINGS__
  • To enable numbering on a specific page, add __NUMBEREDHEADINGS__ at the beginning of the page.
  • To disable numbering on a specific page, add __NONUMBEREDHEADINGS__.

Customization with CSS

.mw-headline::before {
    counter-increment: section;
    content: counters(section, ".") " ";
}
  • CSS는 소수점 스타일의 섹션 번호(예: 1., 1.1 등)를 생성합니다.
  • 알파벳이나 로마 숫자 스타일의 번호 매기기를 원하시면, 특정 카운터와 CSS 규칙을 추가해야 합니다.
  • 설정을 통해 MediaWiki 콘텐츠 전반에서 번호가 매겨진 제목을 표시하고 제어할 수 있습니다.

Comments