메뉴얼:$wgLogo

This page is a translated version of the page Manual:$wgLogo and the translation is 79% complete.
Outdated translations are marked like this.
경고! 경고: MediaWiki installations after MediaWiki 1.35.0 should be using $wgLogos as $wgLogo is no longer supported.[1]
Server URLs and file paths: $wgLogo
사이트 로고의 URL
이 변수가 소개된 버전:pre 1.1.0
이 변수가 사라진 버전:계속해서 쓰이고 있음
허용값:(관계 path 또는 URL)
기본값:"{$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)

설명

 
MediaWiki.org 사이트 로고와 같은 사이즈여야 합니다. 135픽셀

사이트의 로고는 반드시 완전한 URL이거나 DOCUMENT_ROOT을 기준으로 한 상대 Path를 넣어야 합니다. 상대 Path를 사용한다면 슬래시부터 넣은 다음 파일 주소를 넣어주세요. (/file.png [O], file.png[X])

로고는 135 x 135 픽셀을 권장합니다. 더 큰 사이즈의 로고는 site CSS를 변경하세요. (더 작은 건 변경할 필요 없습니다) 더 큰 사이즈의 로고를 사용할 것이라면, 미디어위키는 이 이미지 사이즈 변경을 해주지 않는다는 것을 기억하세요! 해당 픽셀외의 이미지는 무시될 것입니다. (좌상단을 기준으로 잘립니다) 테두리가 하얗다면, 이미지가 실제 배치와 다르게 보일 수 있습니다.

  경고: 미디어위키 기본로고(/resources/assets/wiki.png);에 그냥 덮어쓰지 마세요. 이 파일은 파일명 설정을 진행하면 자동적으로 덮어씌워집니다.

예시

서버에 로고를 업로드하세요. 이 로고를 /images/4/47/mylogo.png이라고 합시다. 이 로고는 LocalSettings.php에 이 내용을 추가하면 사용할 수 있습니다.

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

$wgScriptPath 아래에 넣어야 한다는 것을 잊지 마세요. 또한, $wgScriptPath가 없으면 로고는 들어가지 않습니다.

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;
}

참고 항목