다른 명령
새 문서: == 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... |
|||
13번째 줄: | 13번째 줄: | ||
== Customization with CSS == | == Customization with CSS == | ||
<source lang=css> | <source lang=css> | ||
.mw-headline::before { | .mw-headline::before { |
2024년 11월 11일 (월) 00:15 판
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 콘텐츠 전반에서 번호가 매겨진 제목을 표시하고 제어할 수 있습니다.