Manual:タグ行 (サイトのサブタイトル)

Jump to navigation Jump to search
This page is a translated version of the page Manual:Tagline (Site Subtitle) and the translation is 33% complete.
Other languages:
Deutsch • ‎English • ‎français • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎中文 • ‎日本語 • ‎한국어


A way to change the tagline that appears on top of every page just below the page title (but by default is hidden in Monobook and Vector skins except when printing pages) is to modify the MediaWiki:Tagline system message that if undefined defaults to From {{SITENAME}}.

Add the following to MediaWiki:Common.css if you want the tagline to display in all skins, or to MediaWiki:Monobook.css if you want to adjust only the Monobook skin:

#siteSub { display:block; }

If you don't like the way it looks (the HTML displaying the text is H3 that displays bold by default in most browsers) add some CSS style declarations to that, e.g.:

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

Manual:Skinning Part 1

<h3 id="siteSub"><?php $this->msg('tagline') ?></h3>

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: #siteSub, #siteSub { display: none; }