Jump to content


From mediawiki.org
This page is a translated version of the page Manual:$wgDefaultSkin and the translation is 67% complete.
外装: $wgDefaultSkin
既定値:'vector-2022' (1.41+)

'vector' (1.18-1.40)

'monobook' (1.3–1.17)


この設定は既定の外装を設定します。外装名は小文字で指定しなければなりません (例えば、'MonoBook' ではなく 'monobook' のように)。

これは新規利用者と匿名閲覧者のために既定外装を指定しただけです。匿名閲覧者と登録利用者で外装の変更を個人設定ページに指定していない、もしくは一時的に外装を無効にしている場合、サイトはこの外装を表示します。 (利用者が個人設定で選ぶ外装を制限するには $wgSkipSkins を使用します。)

Changing user preferences when removing a skin

In versions up to at most 1.11, upon registration the value of $wgDefaultSkin was copied to the user preferences; thus setting $wgDefaultSkin to another skin would not have had any effect on registered users, even if they never changed their preferences. And it did not have an effect on registered users, who did change the skin to use.

When you remove a skin from the list of skins to choose from, use the maintenance script userOptions.php to make sure that this skin is also not chosen by any user:

php userOptions.php --old "monobook" --new "vector" skin

This will change the skin for all registered users, who have selected Monobook, to Vector.



See Bundled extensions and skins#Skins.


Legacy information

Several skins are included with the MediaWiki installer tarball (the table below details the versions they were/are available with). You can find more skins in Category:All skins.

The first column gives the ID which should be used to configure this setting, the second gives the name as it appears within the MediaWiki interface and the third indicates the versions of MediaWiki that this skin is available for:

MediaWiki インストーラー tarball に同梱されている外装
ID 名前 バージョン
standard Classic 1.0011.0未満 – 1.21
nostalgia ノスタルジア 1.0011.0未満 – 1.21
cologneblue ケルンブルー 1.0011.0未満 – 1.30
smarty Paddington 1.0002003-09-11 - 1.2
montparnasse Montparnasse 1.0002003-09-11 - 1.2
minerva MinervaNeue 1.3801.38+
davinci DaVinci 1.0301.3
modern モダン 1.1201.12 - 1.30
monobook モノブック 1.0301.3+
myskin MySkin 1.0301.3 – 1.21
chick Chick 1.0401.4 – 1.21
simple Simple 1.0501.5 – 1.21
timeless Timeless 1.3101.31+
vector レガシー ベクター (2010年版) 1.1601.16+
amethyst Amethyst 1.0401.4
wikimania Wikimania 1.0401.4