手册:$wgDefaultSkin
皮肤: $wgDefaultSkin | |
---|---|
新用户默认皮肤。 |
|
引进版本: | 1.3.0 |
移除版本: | 仍在使用 |
允许的值: | (字符串) |
默认值: | 'vector-2022' (1.41+)
'monobook' (1.3–1.17) |
其他设置: 按首字母排序 | 按功能排序 |
详情
此设置设定了默认的皮肤,需确认皮肤名称应首字母小写(例如:"monoBook" 而不是 "MonoBook" )。
注意,此设置仅限“默认”皮肤。网站会为匿名访问者及没有在参数设置中选择不同皮肤(或临时覆盖皮肤)的注册用户渲染该皮肤。(使用$wgSkipSkins
来限制用户可在参数设置中选择的皮肤。)
去除皮肤时更改用户首选项
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
选择Monobook、Vector会改变所有用户的皮肤。
启用皮肤
Bundled
See Bundled extensions and skins#Skins.
Available
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:
ID | 名称 | 版本 |
---|---|---|
standard | Classic | 1.0版以前~1.21版 |
nostalgia | 怀旧 | 1.0版以前~1.21版 |
cologneblue | 科隆香水蓝 | 1.0版以前~1.30版 |
smarty | Paddington | 2003-09-11 - 1.2 |
montparnasse | Montparnasse | 2003-09-11 - 1.2 |
minerva | MinervaNeue | 1.38+ |
davinci | DaVinci | 1.3 |
modern | 现代 | 1.12 - 1.30 |
monobook | MonoBook | 1.3+ |
myskin | MySkin | 1.3 – 1.21 |
chick | Chick | 1.4 – 1.21 |
simple | Simple | 1.5 – 1.21 |
timeless | Timeless | 1.31+ |
vector | 旧版Vector(2010) | 1.16+ |
amethyst | Amethyst | 1.4 |
wikimania | Wikimania | 1.4 |