미디어위키 메인페이지 변경

1 개요[ | ]

How do I change which page is the main page?
미디어위키 메인페이지 변경
미디어위키 대문 변경
  • 어떤 이유로 "대문"이 아닌 다른 문서를 첫페이지로 변경하고 싶은 경우가 있다.
  • 미디어위키의 언어 설정을 ko(한국어)로 한 경우, 메인페이지(첫페이지) 문서는 "대문"이 된다.

2 방법 1: 웹상 미디어위키 설정[ | ]

  • 자신의 미디어위키 웹상에서 Mediawiki:Mainpage로 들어가 원하는 값으로 변경한다.
  • 기본값은 "대문"일 것이다.

3 방법 2: MessagesKo.php 수정[ | ]

# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "ko";
</sourcE>

*[[미디어위키 폴더]] 아래 /language/messages/MessagesKo.php  mainpage 값을 수정하면 된다.

;변경 
<syntaxhighlight lang='php'>
'helppage' => 'Help:목차',
'mainpage' => '대문',
'mainpage-description' => '대문',
변경 후
'helppage' => 'Help:목차',
'mainpage' => 'Main Page',
'mainpage-description' => '대문',
→ 대문을 Main Page로 바꾼 예

4 참고[ | ]

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