Manual:Tagline(網站副標題欄)

From mediawiki.org
This page is a translated version of the page Manual:Tagline (Site Subtitle) and the translation is 64% complete.

This help page covers useful information on using a subtitle on your wiki.

更改副标题栏

在每一页的页标题下方会出现副标题(在Monobook和Vector主题中,副标题默认是不显示的。)如需修改可以修改 MediaWiki:Tagline,如果没有定义Tagline则默认显示站点标题(From {{SITENAME}})。

您可以到主题相应的CSS文件中修改选择器的值。(譬如 MediaWiki:Common.css。若使用Monobook主题,修改 MediaWiki:Monobook.css

#siteSub {
    display: block;
}

如果您不喜歡這種顯示方式(某些瀏覽器在顯示HTML的H3字體時,會預設為粗體),您可以在CSS格式裡加入以下設定:

#siteSub {
    display: block; font-weight: normal; font-size: normal;
}

Removing from Main Page

If tagline is unhidden and you want to hide it for the Wiki's main page, insert the following .css code in your Wiki's MediaWiki:Common.css page:

body.page-Main_Page.action-view #siteSub,
body.page-Main_Page.action-submit #siteSub {
    display: none;
}

参见