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

문서 목차 불러오기 기능 추가

데브카페
Devcafe (토론 | 기여)님의 2024년 11월 11일 (월) 00:14 판 (새 문서: == 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...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

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 requires some modifications in the MediaWiki skin files or adding specific CSS selectors.

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

Comments