This page is a translated version of the page Manual:$wgLogo and the translation is 42% complete.
Outdated translations are marked like this.
Caution! Caution: MediaWiki installations after MediaWiki 1.35.0 should be using $wgLogos as $wgLogo is no longer supported.[1]
Server URLs and file paths: $wgLogo
Svetainės logotipo URL.
Introduced in version:pre 1.1.0
Removed in version:still in use
Allowed values:(santykinis kelias arba absoliutus URL)
Default value:"{$wgScriptPath }/resources/assets/change-your-logo.svg" (1.38+)

"{$wgScriptPath }/resources/assets/wiki.png" (1.24-1.37)
"{$wgStylePath }/common/images/wiki.png" (pre 1.1.0 – 1.23)

(Note: The default value of this variable depends on other variables, such as the values set in Setup.php , after LocalSettings.php is executed)

Detalės svetainės logotipas. Jūsų logotipas turėtų būti tokio pačio dydžio, pvz., 135 pikseliai.

Svetainės logotipo URL (pvz., paveikslėlis yra vaizduojamas viršutiniame kairiajame puslapio kampe daugelyje MediaWiki įdiegimų). Arba visiškai tinkamas URL arba santykinis kelias nuo DOCUMENT_ROOT. Jeigu tai santykinis kelias, jis turi prasidėti įžambiu brūkšniu (failas DOCUMENT_ROOT kataloge yra /file.png, o ne file.png).

Logotipas turėtų būti 135 x 135 pikslių, tačiau tai gali būti pakeista modifikuojant CSS (o mažesni dydžiai galimi be jokių pokyčių). Note that if you use a bigger image, MediaWiki will not resize this image! Instead, the image will be cut off so that only part of it (the upper left-hand corner to be precise) will be visible. If this corner is completely white, it might look like the image does not display although in fact it does.

  Caution: Do not simply overwrite the default logo installed with MediaWiki (/resources/assets/change-your-logo.svg); this file will automatically be overwritten when you upgrade and your changes will be lost.


Įkelkite savo logotipą į savo serverį. Let's say it ends up as /images/4/47/mylogo.png. Then you can use it as your site logo by adding this line to LocalSettings.php:

$wgLogo = $wgScriptPath . '/images/4/47/mylogo.png';

Make sure that you add this line below the definition of $wgScriptPath! Otherwise, $wgScriptPath will still be undefined and the logo will not display.

Vary logo per language

With CSS, it is possible to use a different logo for each interface language:

.mw-wiki-logo:lang(ar) {
	background-image: url( /logos/ar.png ) !important;

.mw-wiki-logo:lang(de) {
	background-image: url( /logos/de.png ) !important;

Taip pat skaitykite