Manual:$wgLogoHD/zh
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed from MediaWiki core in version <tvar name=ver>1.42.0</tvar>.</translate> <translate> Please see <tvar name=page>$wgLogos</tvar> for an alternative way to use this feature.</translate> |
<translate> Server URLs and file paths</translate>: $wgLogoHD | |
---|---|
高清版本网站Logo的URL。 |
|
<translate> Introduced in version:</translate> | 1.25.0 (Gerrit change 195195; git #b5f2cf2d) |
<translate> Deprecated in version:</translate> | 1.35.0 (Gerrit change 562588; git #8cd2e133) |
<translate> Removed in version:</translate> | 1.42.0 (Gerrit change 992794; git #167fbd0a) |
<translate> Allowed values:</translate> | (array of factors and relative paths or urls) |
<translate> Default value:</translate> | false |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
细节
Array with factors and their associated relative paths or URL paths to HD versions of the wiki logo. 缩放的logo大小应该小于135x135像素,与$wgLogo 的大小相同。
只支持1.5倍和2倍的版本。 这就意味着两倍版本的logo最大为270x270像素的正方形。
例如:
$wgLogoHD = [
"1.5x" => "path/to/1.5x_version.png",
"2x" => "path/to/2x_version.png"
];
较旧的MediaWiki版本
如果您使用1.25版本之间的MediaWiki,您可以将下面这段内容添加到MediaWiki:Common.css中:
@media (-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx), (min-resolution: 144dpi) {
#p-logo a {
background-image: url(//path/to/1.5x_version.png);
}
}
@media (-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (min-resolution: 2dppx), (min-resolution: 192dpi) {
#p-logo a {
background-image: url(//path/to/2x_version.png);
}
}
另请参阅
Categories:
- MediaWiki configuration settings/zh
- MediaWiki configuration settings introduced in version 1.25.0/zh
- MediaWiki configuration settings deprecated in version 1.35.0/zh
- MediaWiki configuration settings removed in version 1.42.0/zh
- Pages with broken file links
- MediaWiki deprecated or obsolete features/zh
- Path variables/zh