手册:首页
如果没有在index.php的参数中指定页面,wiki将跳转到首页。 如果用户点击logo或侧边栏上的首页链接,也将跳转到首页。 首页页面所在的位置(标题)可以通过修改MediaWiki:Mainpage来修改。 “首页”的用词及其翻译可以通过系统消息MediaWiki:Mainpage-description查看和修改(例如在MediaWiki:Sidebar等位置的使用)。
To change which page is the main page, in the search bar, type MediaWiki:Mainpage
.
Then edit it so its content is the name of the page you want to be the main page.
MediaWiki:Mainpage
should always contain the title, because it is a system message that is reserved for the title of the main page, so don't change it to MediaWiki:x
.
The title displayed on the Main Page can be customized by editing MediaWiki:Mainpage-title and MediaWiki:Mainpage-title-loggedin. (This bypasses $wgRestrictDisplayTitle .)
If created but set to the empty string, no title will be shown.
If set to -
(just a hyphen), it will not be overridden, and the normal display name algorithm will be applied.
To change the HTML title displayed on the main page, edit MediaWiki:Pagetitle-view-mainpage
.