Manual:$wgLogoHD
Jump to navigation
Jump to search
![]() | This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.35.0. |
URLs and file paths: $wgLogoHD | |
---|---|
URLs for HD versions of the site logo. |
|
Introducido en la versión: | 1.25.0 |
Deprecated in version: | 1.35.0 (Gerrit change 562588; git #8cd2e133) |
Eliminado en la versión: | aún se usa |
Valores permitidos: | (array of factors and relative paths or urls) |
Valor predeterminado: | false |
Otras configuraciones: Alfabéticamente | Por Función |
Detalles
Array with factors and their associated relative paths or URL paths to HD versions of the wiki logo. The scaled logo size should be under 135x135 pixels, the same as the size should be for the file of $wgLogo .
Only 1.5x and 2x versions are supported. That means e.g. the 2x version should be a square and should maximally have 270x270 pixels.
Ejemplo:
$wgLogoHD = [
"1.5x" => "path/to/1.5x_version.png",
"2x" => "path/to/2x_version.png"
];
Versiones antiguas de MediaWiki
If you're using MediaWiki versions older than 1.25, you can add the following snippet to your 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);
}
}
Véase también
Categories:
- MediaWiki configuration settings/es
- MediaWiki configuration settings 1.25.0/es
- MediaWiki configuration settings introduced in version 1.25.0/es
- MediaWiki configuration settings deprecated in version 1.35.0/es
- MediaWiki configuration settings still in use/es
- MediaWiki deprecated or obsolete features/es
- Path variables/es