스킨:벡터
Vector 출시 상태: 안정 |
|||
---|---|---|---|
호환성 정책 | 스냅샷은 미디어위키와 함께 릴리스됩니다. Master is not backwards compatible. | ||
Composer | mediawiki/vector-skin | ||
라이선스 | GNU General Public License 2.0 or later | ||
다운로드 | |||
예시 | |||
|
|||
Quarterly downloads | 736 (Ranked 1st) | ||
Public wikis using | 14,010 (Ranked 2nd) | ||
Public wikis using as default skin | 5,943 | ||
$2 스킨 번역 (translatewiki.net에서 가능한 경우) | |||
Vagrant role | vector | ||
이슈 : | 미해결 작업 · 버그 보고 |
In recent years the skin has undergone a number of technical changes, e.g. the switch to Mustache to support the construction of 스킨:벡터/2022 as part of the work done by the 읽기/웹/데스크톱 개선 initiative.
설치
- Vagrant 를 사용하고 있는 경우에는,
vagrant roles enable vector -p
로 설치해주세요
수동 설치
- 파일을 다운로드하고
Vector
폴더를skins/
디렉토리에 넣어 주세요. - 아래의 코드를 LocalSettings.php 파일의 말미에 추가합니다:
wfLoadSkin( 'Vector' );
- 완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.
벡터를 기본 스킨으로 설정하기
LocalSettings.php
의 $wgDefaultSkin
변수를 스킨 파일에 지정된 소문자 스킨 이름으로 설정하여 위키의 새 사용자를 위한 기본 스킨을 설정할 수 있습니다:
$wgDefaultSkin = 'vector'; // "Legacy" Vector (2010)
$wgDefaultSkin = 'vector-2022'; // New Vector (2022)
설정 옵션
$wgVectorUseIconWatch
주시/주시해제 아이콘 사용 유무.
- 지원되는 값:
true
— 주시/주시해제 버튼 사용false
— 주시/주시해제 텍스트 링크 사용
$wgVectorUseIconWatch = true;
$wgVectorResponsive
미디어위키 버전: | 1.26 – 1.35 |
Experimental setting to make Vector a responsive skin that adapts to mobile phones.
false
by default.
- 지원되는 값:
true
— 반응형 사용false
— 반응형 사용 안 함
$wgVectorPrintLogo
미디어위키 버전: | 1.30 – 1.35 |
Logo used in print styles.
Keys are 'url'
, 'width'
, 'height'
(in pixels).
Note that this solution only works correctly if the image pointed to by 'url'
is an SVG that does not specify width and height attributes, or its width and height match the corresponding variables below.
Alternatively, a PNG or other type of image can be used, but its dimensions also need to match the corresponding variable below.
That in turn may result in blurry images, though.
For MediaWiki 1.36 and higher, the print logo will simply be set from Manual:$wgLogos .
$wgVectorPrintLogo = [
'url' => 'https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg',
'width' => 174,
'height' => 27
];
$wgVectorShareUserScripts
Setting to false
prevents Vector 2022 skin from loading MediaWiki:Vector.css and MediaWiki:Vector.js.
기능
- Basic features of the Vector skin
- Reduced clutter, primarily by reducing the number of lines on screen
- More prominent placement of the search portal
- Visual separation of the content-action and namespace links, the former of which being divided into view tabs and action menu items
- Automatic increase/decrease of margins throughout the user interface based on browser size
- Use of a star icon for watch and unwatch actions
- Added features of the Vector extension (some of these features have later been merged into the Vector skin or into the MediaWiki Core or have been removed)
- Simplified search portal, including suggestions
- Collapsible navigation portals
- Alert when leaving an edit page without saving
- Automatic hiding of tabs that do not fit on screen
- Experimental Vector extension features
- Simplified footer content
- Search box expands on focus
- Section edit links are moved to be directly next to heading instead of on the right, and use an icon
- CollapsibleNav support via CollapsibleVector extension
참고
Collapsible navigation
The collapsible navigation portals are now provided by the CollapsibleVector extension which will have to be installed additionally.
Smartphone and tablet design
Vector will work on many mobile devices, but it is not fully optimized for mobile devices. This latest version of Vector, Vector 2022, has better support for mobile devices.
History of the skin
Vector was created in 2009 as part of the work done by the Wikipedia Usability Initiative . It became MediaWiki's default skin in 2010 (MediaWiki 1.17 , git #2833b07a), succeeding 스킨:모노북 . In 2022, as part of the MediaWiki 1.38 release, it was updated as part of the work done by the 읽기/웹/데스크톱 개선 initiative.
Vector provides a number of usability improvements over its predecessor MonoBook.
It was the first skin to separate the flat level content_actions
into the categorized content_navigation
.
At the beginning, the basic functionality was included in the core skin, while some of Vector's special features were handled by a separate extension, Extension:Vector . In MediaWiki 1.22, the extension was merged into the skin.
Dark mode customizations
Parts of this page (those related to section) are outdated. |
A dark color scheme can be applied to Vector using CSS , for example with user styles, [1] which are enabled by default. Dark mode derivatives of the Vector skin, such as Skin:DarkVector , can be loaded into a wiki as a separate option.
Note all of these are supported by third parties, not the Wikimedia Foundation .
같이 보기
- 스킨:벡터/2022 – The 2022 version of Vector
- Skin:DarkVector – 같은 스킨의 다크 테마
- Skin:Vector/VectorBook.css – CSS code to get the book background image from 스킨:모노북 in this skin.
- Skin:Vector/monobook-replica.css – An experiment to make Vector appear as similar to MonoBook as possible using CSS code applied on top of it.
- Skin:Vector/Customize – How to Customize appearance and add some custom HTML code in different places.
1.38 이상에서의 새로운 벡터 스킨
미디어위키 버전: | ≥ 1.38 |
미디어위키 1.38에서 벡터의 새로운 변형인 Vector 2022 가 Desktop Improvements 프로젝트의 일부로 생성되었습니다.
이 스킨은 하나 이상의 위키미디어 프로젝트에서 사용 중입니다. 이것은 아마도 이 스킨이 안정적이고 트래픽이 많은 웹 사이트에서 사용할 수 있을 만큼 충분히 잘 작동한다는 것을 의미합니다. 설치된 위치를 확인하려면 위키미디어의 CommonSettings.php 및 InitialiseSettings.php 구성 파일에서 이 스킨의 이름을 찾습니다. 특정 위키에 설치된 스킨의 전체 목록은 위키의 Special:Version 문서에서 볼 수 있습니다. |
This skin is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this skin even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |